elasticdump
$ elasticdump Community Med Riskelasticdump transfers Elasticsearch and OpenSearch index data, mapping, settings, alias, and template objects between clusters, local NDJSON files, or S3. Supports --searchBody Query DSL filtering and --limit batch sizing, making index snapshots and filtered exports scriptable.
npm install -g elasticdump elasticdump streams paginated scroll/PIT exports of thousands of Elasticsearch/OpenSearch documents directly to NDJSON files; MCP is unsuitable for bulk index dumps.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Fully non-interactive CLI supporting NDJSON --output=$ stdout streaming, --searchBody JSON filters, and --limit, though operational logs are plain text.
- Supports NDJSON files/stdout (
--output=$) and--searchBodyQuery DSL
Read exports only touch local files, though --delete mutates source indexes and there is no --dry-run flag.
- No
--dry-runflag;--deleteflag removes source documents during transfer
Installable globally via npm install -g elasticdump or one-shot via npx elasticdump, requiring Node.js.
- Distributed on npm (
elasticdump) across macOS, Linux, and Windows
Quickly moves mappings, settings, and filtered documents across Elasticsearch/OpenSearch versions without snapshot repo setup.
- Handles
data,mapping,settings,alias, andtemplatetransfers
Long-standing community package (elasticsearch-dump/elasticsearch-dump) under Apache-2.0.
- Community-maintained Apache-2.0 repository
Thorough README flag documentation and --help.
- Detailed flag reference in repository README
Security, Auth & Guardrails
Supports credentials embedded in --input/--output URLs, --headers JSON auth headers, or AWS env vars (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) for S3 targets.
100% free and Apache-2.0 open-source.
# elasticdump Agent Rules - Always export `--type=mapping` and `--type=settings` before moving `--type=data`. - Pass auth via `--headers` from env vars instead of hardcoding `user:pass@` in logged URLs. - Never pass `--delete` on `--input` unless you intentionally want to delete source documents after moving.
Agent-Ready Command Recipes
Safe Read-Only Queries
elasticdump --input=http://localhost:9200/logs --output=logs_mapping.json --type=mapping
Downloads the Elasticsearch/OpenSearch mapping schema into logs_mapping.json.
--searchBody elasticdump --input=http://localhost:9200/logs --output=errors.ndjson --type=data --limit=500 --searchBody='{"query":{"term":{"level":"error"}}}' Streams matching error documents as NDJSON into errors.ndjson.
Controlled Writes & Previews
elasticdump --input=logs_mapping.json --output=http://localhost:9200/logs_restored --type=mapping
Applies the saved mapping schema to a new target index logs_restored.
Strengths for Agents
- + Streams NDJSON index data, mappings, and settings cleanly with
--searchBodyfiltering. - + Works across Elasticsearch, OpenSearch, local files, and S3 without cluster snapshot config.
Caveats & Pitfalls
- ! No
--dry-runflag;--deletepermanently removes documents from--input. - ! Scroll-based exports on huge indices are slower than native cluster snapshots.