弹性搜索 - 如何将数据复制到另一个集群 [英] elasticsearch - how to copy data to another cluster

查看:126
本文介绍了弹性搜索 - 如何将数据复制到另一个集群的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取一个弹性搜索索引到文件,然后将该数据插入另一个集群?
我想将数据从一个集群移动到另一个集群,但是我无法直接连接。

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.

推荐答案

不需要保持_id相同,只有重要的一点是_source你可以使用logstash与config:

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 }

这里是更多信息: http://www.logstash.net/docs/1.4.2/

是的,它的方法很奇怪,但是我尝试使用通过索引的集群之间的即时数据传输,它正在作为一种魅力(当然,如果你不需要保持_id由elasticsearch生成)

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)

这篇关于弹性搜索 - 如何将数据复制到另一个集群的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆