Lets look into migrating the whole ElasticSearch index from one ElasticSearch to another one.
To achieve this you need few prerequisite like NodeJS, npm and elasticdump plugin.
-
Install elasticdump plugin using the below command
npm install -g elasticdump
Once the elastic dump plugin is installed, use the elasticdump utility to migrate the data from one ElasticSearch to another. First migrate the mapping if you required and then dump the data. You will not be able to migrate the data on the existing index, you need to delete the data.
-
Migrate Elasticsearch index using the below command.
#MigratingMapping elasticdump --input=http://src-elastic-search:9200/index1 --output=http://dest-elastic-search:9200/index1 --type=mapping #Migrating Data elasticdump --input=http://src-elastic-search:9200/index1 --output=http://dest-elastic-search:9200/index1 --type=data
Note: elasticdump utility supports both http and https protocol.
Hello there!
Is it possible to use the plugin to dump cluster from AWS ES service?
cheers!
R.