# elasticsearch-esql

> Claude/Codex skill by [@elastic](https://omgskills.com/library/elastic/index.md) · 603 stars · Updated 2026-10-29

Execute ES|QL (Elasticsearch Query Language) queries, use when the user wants to query Elasticsearch data, analyze logs, aggregate metrics, explore data, or create charts and dashboards from ES|QL results.

## Install

```sh
git clone https://github.com/elastic/agent-skills /tmp/agent-skills && ln -s /tmp/agent-skills/skills/elasticsearch/elasticsearch-esql ~/.claude/skills/elasticsearch-esql
```

## From README

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.

## Links

- HTML page: https://omgskills.com/library/elastic/agent-skills/elasticsearch-esql/
- GitHub: https://github.com/elastic/agent-skills
- Author: [@elastic](https://omgskills.com/library/elastic/index.md)

## More from this repo

- [elasticsearch-ingest](https://omgskills.com/library/elastic/agent-skills/elasticsearch-file-ingest/index.md) — Load CSV, JSON, and NDJSON files into Elasticsearch indices using the bulk API and explicit mappings when field types...
   - [@elastic](https://omgskills.com/library/elastic/index.md) · 603 stars
- [elasticsearch-onboarding](https://omgskills.com/library/elastic/agent-skills/elasticsearch-onboarding/index.md) — Help developers new to Elasticsearch get from zero to a working search experience.
   - [@elastic](https://omgskills.com/library/elastic/index.md) · 603 stars
- [kibana-alerting-rules](https://omgskills.com/library/elastic/agent-skills/kibana-alerting-rules/index.md) — Used to create and manage Kibana alerting rules.
   - [@elastic](https://omgskills.com/library/elastic/index.md) · 603 stars
