
Elasticsearch Esql
This connects Claude to Elasticsearch's ES|QL query language, the piped syntax that replaced the old JSON DSL. It auto-detects whether you're on Serverless or a versioned cluster, pulls index schemas so you never guess field names, and handles the quirks like time series indices requiring TS syntax instead of FROM. Useful for log analysis, metrics aggregation, and exploratory queries when you want natural language over manual query construction. The skill knows about version-specific features like MATCH for full-text search and LOOKUP JOIN for enrichment, falling back gracefully on older clusters. Ships with detailed references on time series queries and search strategies if you need to understand what it's generating.
- skills.sh installs
- 5.2K
- GitHub stars
- 604
- last updated
- Aug 21, 2026
Install
$ npx -y skills add elastic/agent-skills --skill elasticsearch-esql --agent claude-codeInstalls into .claude/skills of the current project.
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)
Sponsors
Details
- Repository
- github.com/elastic/agent-skills
- Categories
- AI & Agent Building, Databases
- First seen
- Apr 16, 2026
More from elastic/agent-skills
All 57- Elasticsearch Onboarding4.7K
- Kibana Dashboards4.6K
- Security Case Management4.4K
- Kibana Alerting Rules4.3K
- Kibana Agent Builder4.3K
- Observability Llm Obs4.2K
- Security Alert Triage4.2K
- Security Detection Rule Management4.1K
- Security Generate Security Sample Data4.1K
- Kibana Anomaly Detection3.4K
- Observability K8s Investigation3.3K
- Observability Logs Search3.2K
- Elasticsearch Authn3K
- Elasticsearch File Ingest3K
- Elasticsearch Authz2.9K
- Elasticsearch Audit2.9K
- Kibana Streams2.9K
- Kibana Connectors2.9K
- Kibana Vega2.9K
- Elasticsearch Security Troubleshooting2.9K
- Observability Service Health2.9K
- Kibana Audit2.8K
- Observability Manage Slos2.8K
- Cloud Network Security2.8K