> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gcore.com/llms.txt
> Use this file to discover all available pages before exploring further.

# View Gcore Managed Logging data in Grafana with OpenSearch plugin

The [OpenSearch Grafana Data Source](https://grafana.com/grafana/plugins/grafana-opensearch-datasource/?tab=overview) plugin integrates logs from OpenSearch Dashboards into Grafana, providing a consolidated view of all metrics in one place alongside Grafana's advanced alerting and visualization features. It also enables granular access control over who can view and manage logs, protecting sensitive information.

## Step 1. Set up Managed Logging in the Gcore Customer Portal

Configure Managed Logging in the Gcore Customer Portal to obtain the OpenSearch API endpoint URL and credentials needed in later steps. For details, see [Configure Managed Logging and view logs](/cloud/logging-as-a-service/configure-logging-and-view-your-logs).

## Step 2. Install OpenSearch plugin in Grafana

If the plugin is already installed, skip to **Step 3**.

To install the plugin:

1\. In Grafana, navigate to the **Administration** section and click **Plugins**.

2\. Search for the OpenSearch plugin. In the **State** dropdown, select **All** to ensure the plugin appears in the results.

3\. Click **Install**.

<Frame>
  <img src="https://mintcdn.com/gcore/gc7JxAc22A27n3nY/images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-plugins-search.png?fit=max&auto=format&n=gc7JxAc22A27n3nY&q=85&s=596d0980c756eba69b9c78f1aa5da3a9" alt="Plugins page in Grafana featuring OpenSearch plugin" width="5868" height="2580" data-path="images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-plugins-search.png" />
</Frame>

The installation may take a few minutes.

## Step 3. Configure the OpenSearch plugin to display logs in Grafana

1\. Open the plugin in Grafana.

2\. In the top-right corner of the screen, click **Add new data source**.

<Frame>
  <img src="https://mintcdn.com/gcore/-tGG7PWTFMtYIhJ9/images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-add-data-source.png?fit=max&auto=format&n=-tGG7PWTFMtYIhJ9&q=85&s=a350f5134d4be0592e1d80179442a750" alt="OpenSearch plugin overview in Grafana" width="4624" height="716" data-path="images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-add-data-source.png" />
</Frame>

3\. Configure the HTTP parameters:

* **URL**: Enter the OpenSearch API endpoint URL. The URL is available in the Gcore Customer Portal on the **Managed Logging** page.

* **Access**: **Server (default)** makes the URL accessible from the Grafana backend. **Browser** makes it accessible from the browser.

* **Allowed cookies**: Specify which cookies are allowed in requests to the OpenSearch endpoint.

* **Timeout**: Set the maximum time to wait for a response from OpenSearch before Grafana terminates the connection.

<Frame>
  <img src="https://mintcdn.com/gcore/gc7JxAc22A27n3nY/images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-opensearch-http-config.png?fit=max&auto=format&n=gc7JxAc22A27n3nY&q=85&s=fe3d9068cb1de58047c35412cfe510ef" alt="HTTP settings of the OpenSearch plugin in Grafana" width="2552" height="828" data-path="images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-opensearch-http-config.png" />
</Frame>

4\. Configure authentication. Select **Basic auth** and enter the credentials configured on the **Managed Logging** page in the Gcore Customer Portal.

<Frame>
  <img src="https://mintcdn.com/gcore/gc7JxAc22A27n3nY/images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-opensearch-auth-config.png?fit=max&auto=format&n=gc7JxAc22A27n3nY&q=85&s=794fdab3db2f6660366a01c06e2cbe20" alt="Authentication settings of the OpenSearch plugin in Grafana" width="2380" height="1368" data-path="images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-opensearch-auth-config.png" />
</Frame>

<Info>
  After selecting **Basic auth**, the following error may appear: "OpenSearch error: no permissions for \[indices:admin/mappings/get] and User \[name=test2, backend\_roles=\[], requestedTenant=null]". This is a mapping-fetch error that does not affect data retrieval or plugin functionality — ignore it and continue.
</Info>

5\. Click **Save & test**.

## Step 4. View logs in Grafana

To create a dashboard and display log data, follow the steps below. For more details on dashboards, see the [official Grafana documentation](https://grafana.com/docs/grafana/latest/dashboards/).

To display logs on a new Grafana dashboard, complete the following steps:

1\. In the sidebar, click **Dashboards**.

2\. In the top-right corner of the screen, click **New** > **New dashboard**.

<Frame>
  <img src="https://mintcdn.com/gcore/-tGG7PWTFMtYIhJ9/images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-add-dashboard.png?fit=max&auto=format&n=-tGG7PWTFMtYIhJ9&q=85&s=1d925fbe756da109091e85cbd10ae7ba" alt="Dashboards page in Grafana with the new dashboard button highlighted" width="2920" height="380" data-path="images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-add-dashboard.png" />
</Frame>

3\. Click **Add visualization**.

<Frame>
  <img src="https://mintcdn.com/gcore/-tGG7PWTFMtYIhJ9/images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-add-visualization.png?fit=max&auto=format&n=-tGG7PWTFMtYIhJ9&q=85&s=c7709a881e1decd3cd77c56602cc745c" alt="Grafana dashboard with the Add visualization button highlighted" width="2892" height="828" data-path="images/docs/cloud/logging-as-a-service/view-opensearch-logs-in-Grafana/grafana-add-visualization.png" />
</Frame>

4\. Search for the **grafana-opensearch-datasource** plugin and click the plugin name to add data to the dashboard.

The log data from Managed Logging now appears on the Grafana dashboard.
