Elastic API

- coralogix
- July , 2017,07
Coralogix provides an Elastic API which allows you to query your hosted Elasticsearch instances securely and with ease.
In order to use ElasticSearch api you must add Coralogix token with each HTTP call.
curl -H 'token:YOUR COMPANY PRIVATE KEY' -H "Content-type: application/json" -d '{ "query": { "bool": { "must": [ { "term": { "metadata.applicationName": "PROD" } }, { "range": { "timestamp": { "gte": "now-15m", "lt": "now" } } } ] } }, "aggs": { "severities": { "terms": { "field": "metadata.severity" } } } }' 'https://coralogix-esapi.coralogix.com:9443/*/_search'