For AI agents: the complete documentation index is available at https://docs.us.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.us.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.us.ovhcloud.com/en/manage-and-operate/logs-data-platform/using-grafana-with-logs.md.
  • English

Using Grafana with Logs Data Platform

View as Markdown

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 can communicate with OpenSearch and so allows you to mix data from Logs Data Platform and other data sources like IoT in the same place. This guide will show you how to achieve this.

 

Requirements

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

Operate vQE use - step 1

 

Instructions

Select your Stream Alias

To access your logs from Grafana, you will need to set up an OpenSearch Alias and link them to your Graylog streams. From the OVHcloud Control Panel:

  1. Click Bare Metal Cloud from the top navigation bar.
  2. Select Logs Data Platform and your LDP account.

Operate vQE use - step 2

  1. Choose the Alias tab.
  2. Click on the + Add an alias button
  3. Choose a name and a description for your alias and click Save.

Operate vQE use - step 3

  1. Once the alias has been created. Use the more options ... button to the right and select Attach content to the alias option.

Operate vQE use - step 4

  1. On the next screen, choose the Graylog streams you want to associate to your alias.

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

 

Set up Grafana

Get the latest Grafana release here (v11.1.0 at the time of writing). Then follow the Grafana installation guide according to your platform.

 

Launch it

If everything is set up properly, launch your favorite browser and point it to http://localhost:3000. Once logged in with your Grafana credentials, navigate to the Data Sources panel to set up your Logs Data Platform data source:

Warning

NOTE: Please ensure you:

  • Set the URL to https://<your_cluster>.logs.ovh.com:9200.
  • Set Basic auth to ON.
  • Set your Basic Auth Details as your Logs Data Platform credentials.

Operate vQE use - step 5

Warning

NOTE: Please ensure that you...

  • Set your Index name to the name of your LDP alias linked to Grafana.
  • Set the Time field name to timestamp.
  • Set the Version by clicking Get Version and Save.

Click Save & test. If your configuration is correct, it should display: "Index OK. Time field name OK."

Operate vQE use - step 6

To explore further, you can create a new dashboard and add different styles of visualizations.

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

 

Go further

Browse all the Logs Data Platform guides.

Browse the rest of the OVHcloud US documentation for guides on our other products and services.

Learn more about Logs Data Platform on the OVHcloud US website.