We're launching a new cybersecurity venture! Learn more about Snowbit >

Grafana Plugin Grafana Plugin

Last Updated: Mar. 30, 2022

Connect Your Logs

Grafana Version 7 and Later

Log in to Grafana and click on the gear icon, and click Data sources.

gear menu grafana data sources
  1. Click the blue button ADD a Source.
  2. Type in the search Elasticsearch.
  3. Click select.
  4.  Choose a name to your data source. you can give it any name you’d like.
  5. In the URL please enter your end point (Choose your endpoint from the table below).
  6. Choose “Skip TLS Verify”
  7. Name the header: “token” and insert to the value your Coralogix Logs Query Key
  8. Name the index name “coralogix”, Under Patterns choose: “No Pattern”, time field name: “coralogix.timestamp” and Version “7.0+”
Coralogix data source addition to grafana

Available endpoints:

Account top level domainDefault IndexLogs2MetricsMetrics Index *
coralogix.comhttps://coralogix-esapi.coralogix.com:9443/*https://coralogix-esapi.coralogix.com:9443/*:*_log_metrics*/https://coralogix-esapi.coralogix.com:9443/*:*_new_metrics*/
app.coralogix.inhttps://es-api.app.coralogix.in:9443/*https://es-api.app.coralogix.in:9443/*:*_log_metrics*/https://es-api.app.coralogix.in:9443/*:*_new_metrics*/
app.coralogix.ushttps://esapi.coralogix.us:9443/*https://esapi.coralogix.us:9443/*:*_log_metrics*/https://esapi.coralogix.us:9443/*:*_new_metrics*/
app.eu2.coralogix.comhttps://esapi.eu2.coralogix.com:9443/*https://esapi.eu2.coralogix.com:9443/*:*_log_metrics*/https://esapi.eu2.coralogix.com:9443/*:*_new_metrics*/
app.coralogixsg.comhttps://esapi.coralogixsg.com:9443/*https://esapi.coralogixsg.com:9443/*:*_log_metrics*/https://esapi.coralogixsg.com:9443/*:*_new_metrics*/

* For the metrics index the timestamp is “timestamp” instead of “coralogix.timestamp”

Grafana Earlier than Version 7

  1. Download the Grafana plugin YAML
  2. Add your company name under the “name key”
  3. Add your Coralogix Logs Query Key (Which you can find under Data Flow >> API Keys)
  4. Copy the file to your data source provisioning folder in your Grafana server (default:/etc/grafana/provisioning/datasources)
  5. Restart Grafana

Download Default YAML

Download Logs2Metric YAML

Connect Your Metrics


As part of Coralogix’s metrics offering, we support the querying of metric data through the most prevalent time-series query language – PromQL. This allows you to use Coralogix as your metrics backend and add it as a Prometheus data source to your Grafana instance.

You will learn how to do this and update existing dashboards without any change to the queries or syntax.

Add Coralogix PromQL Data Source

Log in to Grafana and click on the gear icon, and then click add source.

This image has an empty alt attribute; its file name is Screen-Shot-2021-01-11-at-4.51.08-PM.png
  1. Click the blue button ADD a Source.
  2. Search for Prometheus.
  3. Click select.
  4. Choose a name for your data source. You can give it any name you like.
  5. In the URL, please enter your end point (Choose your endpoint from the table below).
  6. Choose “Skip TLS Verify”
  7. Name the header: “token” and insert to the value your Coralogix Logs Query Key
  8. Set Query timeout to 300s
  9. Set HTTP Method to POST
This image has an empty alt attribute; its file name is image.png

Available endpoints:

Account top level domainPromQL Endpoints
coralogix.comhttps://prom-api.coralogix.com
app.coralogix.inhttps://prom-api.app.coralogix.in
app.coralogix.ushttps://prom-api.coralogix.us
app.eu2.coralogix.comhttps://prom-api.eu2.coralogix.com
app.coralogixsg.comhttps://prom-api.coralogixsg.com

* For the metrics index the timestamp is “timestamp” instead of “coralogix.timestamp”

Useful Docker Commands

If you have Grafana installed on a docker container, you can use these useful commands to interact with Grafana:

  • List all your docker containers
docker ps -a
  • Log in to your Grafana container
sudo docker exec -it "Grafana container ID" /bin/bash
  • Restart Grafana
docker restart "Grafana container ID"

On this page