Plugins 〉Elasticsearch


Developer

Grafana Labs

Sign up to receive occasional product news and updates:



Data Source
grafana

Elasticsearch

  • Overview
  • Installation
  • Change log
  • Related content

Elasticsearch Data Source - Native Plugin

Grafana ships with advanced support for Elasticsearch. You can do many types of simple or complex elasticsearch queries to visualize logs or metrics stored in Elasticsearch. You can also annotate your graphs with log events stored in Elasticsearch.

Read more about it here:

https://grafana.com/docs/grafana/latest/features/datasources/elasticsearch/

Install on Grafana Cloud

Plugins can be installed directly from within your Grafana instance or automated using the Cloud API or Terraform.

Learn more about plugin installation

For more information, visit the docs on plugin installation.

Changelog

12.7.0

  • Feature: Remove elasticsearchRawDSLQuery and elasticsearchESQLQuery feature toggles — raw DSL and ES|QL editors are now always available #358
  • Feature: Support PromQL source commands in ES|QL metrics queries #332
  • Fix: Migrate legacy variable queries so template variables keep working #231
  • Fix: Harden Elasticsearch backend against malformed responses and edge-case aggregations #345
  • Fix: Include prereleases when matching ES version against metric ranges #323
  • Fix: Load logs volume for raw DSL (Code editor) logs queries #342
  • Fix: Align value with key_as_string for typed Elasticsearch bucket fields #324
  • Fix: Word-wrap long Lucene queries instead of overflowing the input #349
  • Fix: Show per-level breakdown in Explore logs volume #326
  • Fix(esql): Inject time range when query contains template variables #340
  • Refactor: Add frontend query validation layer #276
  • Chore: Lock in UTC resolution for hourly index patterns in tests #325
  • Chore: Use shared data-sources Renovate base preset #354
  • CI: Add add-to-project workflow and remove issue_commands #352
  • CI: Update plugin-ci-workflows #348
  • Docs: Add signed commits requirement to CONTRIBUTING.md #351
  • Dependency updates:
    • Fix(deps): Update grafana monorepo to v13 #338
    • Chore(deps): Update Node.js to v24.17.0 #335

12.6.5

  • Fix: Preserve Lucene query when switching between metric aggregations #328
  • Fix: Make grafanaDependency prerelease-inclusive in plugin.json #314
  • Perf: Close idle HTTP connections when the datasource is disposed #274
  • Chore: Bump grafanaDependency floor to >=12.2.0 #312
  • Fix(deps): Update module github.com/grafana/grafana-plugin-sdk-go to v0.292.0 #302

12.6.4

  • Fix: Replace Slate-based QueryField with Input to resolve panel-editor crash on Grafana 13.1+ #310
  • Fix: Correctly render multi-field terms breakdown #282
  • Chore: Security hardening sweep — dependency, Renovate, and GitHub Actions tightening; clears GO-2026-5026 and GO-2026-4918 #304
  • Chore: Auto-audit hygiene fixes — Node >=24 engines, supply-chain-hardened .npmrc, plugin scaffolding refresh #308
  • CI: Bump plugin-ci-workflows to v8.0.1 (GATB token migration) #292
  • Chore: Run externalised plugin in place of core in docker compose #275

12.6.3

  • Chore: Update Go version to 1.26.3

12.6.2

  • Chore: Update Go version to 1.26.2

12.6.1

  • Chore: Update Go version to 1.26.1

12.6.0

  • Feature: Experimental schema support for SQL querying

12.5.5

  • Fix: Enable ForwardHTTPHeaders so OAuth identity is forwarded to Elasticsearch #271
  • Feature: Automatically add a time range filter on ESQL queries when it's not provided #261
  • Dependency updates:
    • Chore: Update dependency @grafana/data to v13.0.0 #267 and previous versions
    • Chore: Update dependency @elastic/esql to v1.8.0 #265 and previous versions
    • Chore: Update dependency @elastic/monaco-esql to v3.3.1 #264
    • Chore: Update dependency @swc/core to ^1.15.24 #277
    • Chore: Update dependency prettier to ^3.8.2 #278 and previous versions
    • Chore: Update dependency eslint-webpack-plugin to v6 #260
    • Chore: Update dependency sass to v1.99.0 #259
    • Chore: Update dependency @playwright/test to ^1.59.1 #257
    • Fix(deps): Update module github.com/grafana/grafana-plugin-sdk-go to v0.291.1 #262
    • Fix(deps): Update module github.com/magefile/mage to v1.17.1 #242
    • Chore: Update module go.opentelemetry.io/otel/sdk to v1.43.0 [security] #255

12.5.4

  • Build: Override plugin sdk's BuildAll to enable extra platforms #245
  • Chore: Disable splashscreen to fix e2e tests #246
  • Dependency updates:
    • Chore: Update dependency @grafana/data to v13.0.0-24126890812 #250 and previous versions
    • Chore: Update dependency @elastic/esql to v1.7.0 #230
    • Chore: Update swc monorepo #249
    • Fix(deps): Update module github.com/magefile/mage to v1.17.0 #237

12.5.3

  • Chore: Add linux/s390x and windows/arm64 targets to build #220
  • Dependency updates:
    • Fix(deps): Update module github.com/grafana/grafana-plugin-sdk-go to v0.291.0 #222
    • Chore: Update dependency @grafana/data to v13.0.0-23914290240 #233 and previous versions

12.5.2

  • Feature: Add support for runtime fields #189
  • Docs: Add README and CONTRIBUTING guide #212
  • Dependency updates:
    • Chore: Update dependency @grafana/data to v13.0.0-23796392586 #211 and previous versions
    • Chore: Update grafana monorepo #173
    • Chore: Update dependency @elastic/esql to v1.6.0 #179
    • Chore: Update dependency @swc/core to ^1.15.18 #172
    • Chore: Update dependency @swc/helpers to ^0.5.19 #199
    • Chore: Update npm to v11.12.1 #200

12.5.1

  • Fix: Correctly support legacy template variables #162
  • Fix: Raw query editor orderBy bug #161

12.5.0

  • Feature: Add support for ES|QL queries #124
  • Fix: Explicitly forward Content-Type header to upstream requests #133

12.4.3

  • Fix: Add missing AWS authentication middleware
  • Chore: Copy query editor options box from core #104
  • Chore: Copy variable query editor support from core #100

12.4.2

  • Initial release of the Elasticsearch data source as an external data source.