Logz.io

Data Source

Logz.io Data Source for Grafana

Logz.io data source for Grafana

This plugin is a copy of the Elasticsearch datasource with custom headers.

At the time of release, custom headers for http datasources have not been merged to the Grafana project. This is a temporary solution until the custom headers are pulled into Grafana.

Before you start

To complete this procedure, you'll need:

  • Write access to your Grafana server
  • Logz.io API access
To configure Logz.io as a Grafana data source
  1. Fork or clone the grafana-logzio-datasource repository from GitHub.

  2. Copy grafana-logzio-datasource/dist/ to the Grafana server at var/lib/grafana/plugins/<folder_name>/. It doesn't matter what you name <folder_name>.

  3. Restart Grafana.

  4. In Grafana, open your Configuration, and click Add data source.

  5. Enter these settings:

SectionField nameValue
NameCustom data source name (This is the Data Source you'll use for your Grafana graphs.)
TypeLogz.io
HTTPURLhttps://api.logz.io/v1/elasticsearch (US Accounts) or https://api-eu.logz.io/v1/elasticsearch (EU Accounts)
Custom HeadersKeyX-API-TOKEN
ValueYour Logz.io API token
Elasticsearch detailsIndex nameCustom name
Time field name@timestamp

When you're done, click Save & Test. If the test passes, you can now use Logz.io as a data source.

To use Logz.io as a data source, select a Logz.io source from the Data Source list in any Grafana graph. (This is the Custom data source name that you set in step 5.)

Install Plugin

Version