Simple command-line tool to dump document _source from ElasticSearch Lucene indexes.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

ESID: Elasticsearch Index Dumper

Simple utility to dump out the _source field values from Elasticsearch index(es).

The default output is of a form that can be imported into an Elasticsearch cluster with ElasticDump

Elasticsearch Home

In order to build or run esid the environment variable ES_HOME must be set, pointing to the home directory of your Elasticsearch installation. We use the Lucene and Elasticsearch Java packages from your local Elasticsearch install. Be sure that you are using the same version of Elasticsearch with ESID that your data was created with.


$ export ES_HOME=<your Elasticsearch install>

$ ant build


$ export ES_HOME=<your Elasticsearch install>

$ ./bin/ <index...>

The output is of the form:

{"_type":"some_document_type_abc", "_id":"some_id_value_123", "_source":{ ...source JSON document... } }

which is compatible with ElasticDump.

You can list multiple indexes on the command-line and each will be dumped out in turn, e.g.

$ ./bin/ /data/es_indexes/*/*/index


  • -h help
  • -d prefix each document output line with the document number
  • -c emit count of documents in index, rather than dumping the index documents
  • -l list fields of index with field metadata