So you want to migrate Elasticsearch indices from one installation to another. The solution presented here will need Node.js and the package
elasticdump from NPM. You will need to set up these on a system from which you want to do the migrations. Let's start.
First make sure Node.js is installed.
Then install elasticdump by running the command.
npm i elasticdump -g
elasticdumpglobally. If you got a permission error run with
Now we can use this package to move an index from one es to another.
elasticdump \ --input=http://i1.es.in:9200/index_1 \ --output=http://i2.es.in:9200/index_1 \ --type=mapping
--input= arg is the es source instance where you want to move the index from
--output= is the destinaation es
--type= has three options
mappingif you only want to move index mapping
dataif you want to migrate data
analyzerincludes analyzer and mapping
Do this query to list all indices on an elastic instance