Path

Save and test your Elasticsearch data source connection to verify Grafana can reach your instance.

Estimated time: 1 min

Test the connection

Now that you’ve configured the connection details, save the data source and verify that Grafana can successfully connect to your Elasticsearch instance.

  1. Click Save & test.

    A successful connection displays the message: Elasticsearch data source is healthy.

Common connection issues

SymptomLikely causeSolution
Connection refusedElasticsearch not running or wrong URLVerify the URL and port (default 9200) and that Elasticsearch is accepting connections
Unauthorized (401)Invalid credentials or API keyVerify the username and password, or regenerate the API key with read access
Forbidden (403)Missing cluster privilegesGrant the monitor, view_index_metadata, and read privileges to the user or API key
No index foundIncorrect index name or patternVerify the index name and, if you use a time pattern, that matching indices exist
TimeoutGrafana Cloud can’t reach a private instanceSet up Private data source connect

In the next milestone, you’ll run a query and explore your Elasticsearch data in Grafana.

Were you successful?