Using Grafana with Logs Data Platform

Last updated 15th June, 2022


Grafana provides a powerful and elegant way to create, explore, and share dashboards and data with your team and the world. Since release 7, Grafana is able to communicate with OpenSearch and so allow you to mix data from Logs Data Platform and other data sources like IoT at the same place. This guide will show you how to achieve this.


This is what you need to know to get you started:

  • you are already sending logs on a stream you own see the quick start tutorial
  • Your have access to the port 9200 to your cluster (head to the Home page in manager to know the address of your cluster).

After some training you will be able to create this kind of dashboard:

Grafana Dashboard


Select your Stream Alias

To access your logs from Grafana, you will need to setup an OpenSearch Alias and link them to your Graylog streams, so here we go again :

  1. Log in to the OVHcloud Control Panel.
  2. In the Alias panel, click on the Add an alias button
  3. Choose a name and define a description for your alias
  4. Save the entry by clicking the Save button
  5. Once the alias has been created. Use the ... menu at the right and select Attach content to the alias option.
  6. Define there the graylog streams you want to associate to your alias
  7. That's it.

Alias creation

So here you go, now Logs Data Platform knows what stream you want to browse. Now let’s configure Grafana and see if it works!

Setup your own grafana

Get the latest Grafana release here: (v9.0.0 at the time of writing). Then follow the Grafana installation guide according your platform:

Launch it!

If everything is setup properly, launch your favorite browser, and point it to http://localhost:3000 Once logged in with your grafana credentials, reach data sources panel to setup your Logs Data Platform datasource:

Data source_1

To make the magic happens, please ensure to:

  • Set https://<your_cluster> as Url value
  • Set your Logs Data Platform credentials for Basic auth values
  • Set your Logs Data Platform alias name as Grafana Index name value
  • Change default Time field name to timestamp
  • Set 1.X as OpenSearch version
  • Register your data source and test it.

If your configuration is correct, it should display: " Index Ok. Timefield Ok."

Data source 2

Test it!

Now let's add a simple counter of your logs to a new dashboard.

  1. On dashboard page, click on the green left button and select Add panel => Singlestat
  2. On the bottom right, select your datasource.
  3. That's it :)

If you want to know what you can do with Grafana and OpenSearch, read the official documentation.

Go further

Cette documentation vous a-t-elle été utile ?

N’hésitez pas à nous proposer des suggestions d’amélioration afin de faire évoluer cette documentation.

Images, contenu, structure… N’hésitez pas à nous dire pourquoi afin de la faire évoluer ensemble !

Vos demandes d’assistance ne seront pas traitées par ce formulaire. Pour cela, utilisez le formulaire "Créer un ticket" .

Merci beaucoup pour votre aide ! Vos retours seront étudiés au plus vite par nos équipes..

Ces guides pourraient également vous intéresser...

OVHcloud Community

Accedez à votre espace communautaire. Posez des questions, recherchez des informations, publiez du contenu et interagissez avec d’autres membres d'OVHcloud Community.

Echanger sur OVHcloud Community

Conformément à la Directive 2006/112/CE modifiée, à partir du 01/01/2015, les prix TTC sont susceptibles de varier selon le pays de résidence du client
(par défaut les prix TTC affichés incluent la TVA française en vigueur).