Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

elasticsearch - how to copy data to another cluster

How can I get an elasticsearch index to a file and then insert that data to another cluster? I want to move data from one cluster to another but I can't connect them directly.

like image 871
voyagersm Avatar asked Jul 26 '13 14:07

voyagersm


1 Answers

If you no need to keep _id the same and only important bit is _source you may use logstash with config:

input { //from one cluster } output { //to another cluster }

here is more info: http://www.logstash.net/docs/1.4.2/

Yes it's method is weird, but I tried it for instant data transfer between clusters index by index and it is working as a charm (of course if you no need to keep _id generated by elasticsearch)

like image 133
PHPSoft Avatar answered Sep 23 '22 09:09

PHPSoft