Add Coralogix as data source to Grafana version lower than version 7.
- Download the Grafana plugin YAML
- Add your company name under the “name key”
- Add your Coralogix Logs API Key (Which you can find under Settings –> Account –> API Access)
- Copy the file to your data source provisioning folder in your Grafana server (default: /etc/grafana/provisioning/datasources)
- Restart Grafana
Download Default YAML
Download Logs2Metric YAML
Useful commands in case you have Grafana installed on docker container.
- 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"
Add Coralogix as data source to Grafana version 7 and up.
log in to Grafana and click on the gear icon, and click add source
- Click to blue button ADD a Source.
- Type in the search Elasticsearch.
- Click select.
- Choose a name to your data source. you can give it any name you like.
- In the URL please enter your end point (Choose your endpoint from the table below).
- Choose “Skip TLS Verify”
- Name the header: “token” and insert to the value your Coralogix Logs API Key
- Name the index name “coralogix”, Under Patterns choose: “No Pattern”, time field name: “coralogix.timestamp” and Version “7.0+”
Available endpoints:
Cluster | Index | Log2metrics |
Europe |
https://coralogix-esapi.coralogix.com:9443/*
|
https://coralogix-esapi.coralogix.com:9443/*:*_log_metrics*/
|
India |
https://es-api.app.coralogix.in:9443/*
|
https://es-api.app.coralogix.in:9443/*:*_log_metrics*/
|