Connecting to Elasticsearch Database and Kibana
webMethods API Gateway requires Elasticsearch database to store its data and Kibana to visualize data as part of the analytics dashboard. You must download Elasticsearch and Kibana and perform configurations to enable your webMethods API Gateway instance to use it.
To connect webMethods API Gateway to external Elasticsearch database
- Download the latest supported version of Elacticsearch for the current webMethods API Gateway version from the following URL: https://www.elastic.co/downloads/elasticsearch
- Unzip the downloaded Elasticsearch folder.
- Configure Elasticsearch. For detailed information on how to configure Elasticsearch, see https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html.
- Navigate to SAG_Install_Dir/IntegrationServer/packages/WmAPIGateway/config/resources/elasticsearch .
- Open config.properties.
- Set the values for the following properties:
- pg.gateway.elasticsearch.hosts to localhost:9240.
- Save the configuration of the config.properties file.
- Open analyticsds.properties.
- Set the value of the property apigw.analytics.ds.hosts to localhost:9240.
- Save the configuration of the analyticsds.properties file.
The connection is established.
To connect webMethods API Gateway to Kibana
- Download the latest version of Kibana from the following URL: https://www.elastic.co/downloads/kibana
- Unzip the downloaded Kibana folder.
- Configure Kibana. For detailed information on how to configure Kibana, see https://www.elastic.co/guide/en/kibana/current/settings.html.
- Navigate to Install_Dir/Kibana/Kibana-${ES_VERSION}/bin.
- Open command prompt in this location and run the following command:
bat 'start cmd.exe /c kibana.bat --port=9405 --server.basePath="/apigatewayui/dashboardproxy" --server.host="0.0.0.0" --elasticsearch.hosts=" http://localhost:9240" --pid.file="kibana.pid" &'
The connection is established.