Load CSV and JSON files into Elasticsearch indices using the bulk API and explicit mappings when field types matter. Use when batch-importing local files, converting CSV rows or JSON arrays to NDJSON bulk format, or verifying document counts and mappings after ingest — not for Logstash pipelines, Beats, custom scripts, or index-to-index reindex.
Install
npx skills add elastic/agent-skills --skill elasticsearch-ingestnpx skills add elastic/agent-skills --skill elasticsearch-ingest -a claude-code -gnpx skills add elastic/agent-skills --skill elasticsearch-ingest -a codex -ggemini skills install https://github.com/elastic/agent-skills.git --path skills/elasticsearch/elasticsearch-ingestgh skill install elastic/agent-skills elasticsearch-ingestgit clone --depth 1 https://github.com/elastic/agent-skills /tmp/elastic__agent-skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/elastic__agent-skills/skills/elasticsearch/elasticsearch-ingest ~/.claude/skills/elasticsearch-ingest # Claude Code
cp -R /tmp/elastic__agent-skills/skills/elasticsearch/elasticsearch-ingest ~/.agents/skills/elasticsearch-ingest # Codex, Cursor, Gemini CLI, Copilot, OpenCode