Although we recommend using Kibana to view the data in your stacks, you can access your stacks using the Elasticsearch API with your Elasticsearch access details. Logit offers two methods of accessing your Elasticsearch API, basic authentication mode and API key authentication mode.

How to find your Elasticsearch access details

  1. Login to your Logit account.
  2. Select the Settings of the stack you wish to access.
  3. Choose Elasticsearch from the menu.
  4. Your Elasticsearch access details are displayed.

Using API key authentication mode to access Elasticsearch API

This is the default method of accessing your Elasticsearch API.  The access details provide you with the information required to access your stack:

You can create your web request in the following format :
[ELASTICSEARCHENDPOINT]/_search?apikey=[YOURAPIKEY]&pretty=true&q=[QUERY]
 

Example CURL command:

curl -i -X GET "https://e6db21bb-daa8-4f06-990f-46e54fc119f3-es.logit.io/_search?apikey=e5d65acc-972a-44c1-ad42-688dfca27a04ae&pretty=true&q=[QUERY]"

Using basic authentication mode to access Elasticsearch API

The Elasticsearch access details provide you with the information required to access your stack:

You will need to encode your username and password to base64encoding.  A rest client can generate this for you using your credentials.

Example CURL command: 

curl -i -X GET -H "Authorization:Basic [BASE64ENCODEDCREDENTIALS]" "https:///e6db21bb-daa8-4f06-990f-46e54fc119f3-es.logit.io/_search?q=[QUERY]"

What's next

  • Learn more about querying the Elasticsearch API here.
Did this answer your question?