/elastic-elasticsearch:elasticsearch-ingestfrom elastic-elasticsearch
Loads local CSV, JSON array, and NDJSON files into Elasticsearch indices using the bulk API via the elastic CLI. Creates explicit mappings before loading when field types matter.
Ships in elastic-elasticsearch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Load local files into an index with POST /_bulk. The
Bulk API covers the NDJSON
action-and-source format, action semantics, the 100 MB request limit, and the errors/items response. The
mapping overview covers field types and why they can't
change after indexing. This skill holds what those pages and the CLI help don't make obvious. Mapping design for
specific access patterns belongs to the elasticsearch-index-design skill.
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.
GET / confirms the CLI context works; if it fails, fix configuration
before converting or loading anything.text with a .keyword sub-field, quoted ISO dates become
date, and a numeric column whose first value is 0 becomes long, so later 12.5 values are truncated. Look at
GET /{index}/_mapping if the index might exist, then PUT /{index} with mappings."36" indexes into a long
(coerce) and "true" into a
boolean (boolean). Values that
can't be parsed still fail per item: "N/A" in a number, 01/15/2023 in a date without a matching
format, and empty CSV cells, which
arrive as "" (that reads as false in a boolean field). Send blanks as null or omit the field.POST /{index}/_bulk
helper in Operations splits arrays per element, batches by bytes (5 MB default), sends batches in parallel, and
retries batches that fail outright. For CSV it turns true/false into booleans and every numeric-looking cell into
a number, which strips leading zeros from ZIP codes and padded IDs whatever the mapping says. Convert such files to
NDJSON yourself with those columns kept as strings, then load that.POST /_bulk, not the helper. The helper prefixes every line with an index
action, so a file that already alternates action and source lines would index its action lines as documents. The CLI
takes the body as a JSON file shaped {"operations": [action, source, …]} rather than raw NDJSON; keep each request
well under 100 MB.POST /_bulk when the helper's fixed index action is wrong. The helper can't set _id, so a rerun
duplicates every document. Stable _ids make reloads overwrite instead. Data streams accept only create actions and
need a matching index template
(use a data stream).errors: true when individual items fail, and the helper's
summary only counts failed documents without the reasons. Before a full load, send a few documents through
POST /_bulk and read each item's error.type and reason; fix the mapping or the conversion, not the cluster. Back
off on 429 rather than retrying immediately
(tune for indexing speed).DELETE /{index} destroys data that may not exist anywhere
else, so get explicit confirmation in the conversation first. A wrong mapping isn't permission. The non-destructive
path is a new index (users-v2) with the right mapping, loaded from the file again
(explicit mapping).POST /{index}/_refresh or send the last POST /_bulk with refresh=wait_for. Then compare GET /{index}/_count
with the rows or elements in the file, and check GET /{index}/_mapping when types matter. A low count means failed
items, overwritten _ids, or a missed refresh; a high count means a duplicate load.users.csv with usable column types" — create users with long, date, and boolean fields first, load
with the helper in CSV mode, refresh, then confirm the count equals the data rows (not the header).events.json (a JSON array)" — the helper splits the array; the count should equal the number of elements.orders.csv with a zip column like 02134" — the helper's CSV casting would drop the leading zero, so
convert to NDJSON with zip as a string and map it as keyword.bulk.ndjson, which already has action lines with _ids" — wrap it as operations for POST /_bulk; the
helper would double-wrap it.age is text; delete it now?" — not without explicit confirmation; offer a new index loaded
from the same file instead.| HTTP API (shorthand) | elastic CLI command |
|---|---|
GET / | elastic es info |
GET /{index}/_mapping | elastic es indices get-mapping --index '<index>' |
PUT /{index} | elastic es indices create --index '<index>' --mappings '<json>' |
DELETE /{index} | elastic es indices delete --index '<index>' |
POST /{index}/_bulk (helper) | elastic es helpers bulk-ingest --index '<index>' --data-file '<path>' [--source-format csv] |
POST /_bulk | elastic es bulk --input-file '<operations.json>' [--refresh wait_for] |
POST /{index}/_refresh | elastic es indices refresh --index '<index>' |
GET /{index}/_count | elastic es count --index '<index>' |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 plugins ship this exact skill · first indexed Nov 28, 2026
10 skills in this plugin
/elasticsearch-anomaly-detectionCreate and manage Elastic ML anomaly detection jobs via the API. Use when setting up jobs on an index or data stream, configuring jobs and datafeeds, or opening, starting, or stopping them.
/elasticsearch-anomaly-detection-explainerExplain Elasticsearch ML anomaly detection scores, model behavior, and result interpretation. Use when the user asks why a score is high or low, how the model learns, what the numbers mean, or how to troubleshoot unexpected anomaly scores.
/elasticsearch-cluster-healthnpx claudepluginhub elastic/agent-skills --plugin elastic-elasticsearchOther plugins' skills for the same job