Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

elasticdump

$ elasticdump Community Med Risk
elasticsearch-dump · Database & Data · Apache-2.0 · macos / linux / windows

elasticdump 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.

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g elasticdump
CLI vs MCP Decision CLI Only

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

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 --searchBody Query DSL
Trust & Safety 19 / 25

Read exports only touch local files, though --delete mutates source indexes and there is no --dry-run flag.

  • No --dry-run flag; --delete flag removes source documents during transfer
Setup & Portability 12 / 15

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
Utility & Efficiency 12 / 15

Quickly moves mappings, settings, and filtered documents across Elasticsearch/OpenSearch versions without snapshot repo setup.

  • Handles data, mapping, settings, alias, and template transfers
Maintenance & Lineage 7 / 10

Long-standing community package (elasticsearch-dump/elasticsearch-dump) under Apache-2.0.

  • Community-maintained Apache-2.0 repository
Docs & Verifiability 8 / 10

Thorough README flag documentation and --help.

  • Detailed flag reference in repository README

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

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.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

100% free and Apache-2.0 open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Export an index mapping to a local JSON file
elasticdump --input=http://localhost:9200/logs --output=logs_mapping.json --type=mapping

Downloads the Elasticsearch/OpenSearch mapping schema into logs_mapping.json.

Export filtered index documents via --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

Restore an index mapping from a JSON file
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 --searchBody filtering.
  • + Works across Elasticsearch, OpenSearch, local files, and S3 without cluster snapshot config.

Caveats & Pitfalls

  • ! No --dry-run flag; --delete permanently removes documents from --input.
  • ! Scroll-based exports on huge indices are slower than native cluster snapshots.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI