Connecting to Elasticsearch Database and Kibana
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 API Gateway instance to use it.
To connect API Gateway to external Elasticsearch database
2. Unzip the downloaded Elasticsearch folder.
4. Navigate to SAG_Install_Dir/IntegrationServer/packages/WmAPIGateway/config/resources/elasticsearch .
5. Open config.properties.
6. Set the values for the following properties:
pg.gateway.elasticsearch.autostart to
false.
pg.gateway.elasticsearch.hosts to
localhost:9240.
7. Save the configuration of the config.properties file.
8. Open analyticsds.properties.
9. Set the value of the property apigw.analytics.ds.hosts to localhost:9240.
10. Save the configuration of the analyticsds.properties file.
The connection is established.
To connect API Gateway to Kibana
2. Unzip the downloaded Kibana folder.
4. Navigate to Install_Dir/Kibana/Kibana-${ES_VERSION}/bin.
5. 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.