elastic avatar

Elasticsearch Esql

Query Elasticsearch data with ES|QL pipelines for schema discovery, aggregation, time series, and charting.

CCM score
79 of 100
skills.sh installs
5.5K
GitHub stars
613
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers schema discovery, feature selection, query generation, and execution against Elasticsearch through the elastic CLI
  • Includes reference files for generation tips, time series queries, PROMQL, approximation, and version history by release
  • Enforces schema discovery before any query, and a version gate that drops features newer than the target cluster
  • Designed for analysts and engineers on Elasticsearch 8.14 or later, self-managed or Elastic Cloud

Install

$ npx -y skills add elastic/agent-skills --skill elasticsearch-esql -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Elasticsearch ES|QL

Execute ES|QL queries against Elasticsearch: discover the schema, choose the right ES|QL feature for the task, generate the simplest correct query, and run it.

Environment Configuration

This skill executes Elasticsearch operations through the elastic CLI. If the elastic CLI is not installed, tell the user what it is needed for. Do not guess credentials, call the HTTP API directly, or attempt other workarounds.

This skill references operations in HTTP-shorthand form (e.g., GET /, GET /_cat/indices, GET /{index}/_mapping, GET /{index}/_settings/index.mode, POST /_query). The Operations table at the end of this document maps each shorthand to the equivalent elastic CLI command — always use the CLI rather than calling the HTTP API directly.

What is ES|QL?

ES|QL (Elasticsearch Query Language) is a piped query language for Elasticsearch. It is NOT the same as:

  • Elasticsearch Query DSL (JSON-based)
  • SQL
  • EQL (Event Query Language)

Details

Repository
github.com/elastic/agent-skills
Categories
Databases, Data Science & Analytics
First seen
Apr 16, 2026

More from elastic/agent-skills

All 19

Similar to Elasticsearch Esql

More Databases