# How to transfer one elasticsearch data to another elasticsearch by using filebeat as a middleware?

**URL:** <https://discuss.elastic.co/t/how-to-transfer-one-elasticsearch-data-to-another-elasticsearch-by-using-filebeat-as-a-middleware/175664>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 6, 2019, 5:09am UTC](https://discuss.elastic.co/t/how-to-transfer-one-elasticsearch-data-to-another-elasticsearch-by-using-filebeat-as-a-middleware/175664 "2019-04-06T05:09:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohan\_Selvam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohan_selvam/32/43587_2.png) [@Mohan\_Selvam](https://discuss.elastic.co/u/Mohan_Selvam)\
**Post date:** [April 6, 2019, 5:09am UTC](https://discuss.elastic.co/t/how-to-transfer-one-elasticsearch-data-to-another-elasticsearch-by-using-filebeat-as-a-middleware/175664/1 "2019-04-06T05:09:27Z")

</div>

I am having two elasticsearch with different versions, one is development and another one is production, so now i need to transfer the live data of production to development elasticsearch, so is anyway to achieve this by using filebeat as a middleware?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 6, 2019, 5:39am UTC](https://discuss.elastic.co/t/how-to-transfer-one-elasticsearch-data-to-another-elasticsearch-by-using-filebeat-as-a-middleware/175664/2 "2019-04-06T05:39:46Z")

</div>

Use the `_reindex` API and just pull from one cluster to another.  
Or use snapshot.

Filebeat is not the best tool for this.

---

<div class="post-metadata">

**Author:** ![Mohan\_Selvam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohan_selvam/32/43587_2.png) [@Mohan\_Selvam](https://discuss.elastic.co/u/Mohan_Selvam)\
**Post date:** [April 6, 2019, 5:44am UTC](https://discuss.elastic.co/t/how-to-transfer-one-elasticsearch-data-to-another-elasticsearch-by-using-filebeat-as-a-middleware/175664/3 "2019-04-06T05:44:29Z")

</div>

is it will work like a live update? whenever the prod elasticsearch getting updated i need to update the dev elasticsearch without doing anything like cron jobs. is it possible? also filbeat is not possible to transfer the data of elastic to another elastic?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 6, 2019, 6:34am UTC](https://discuss.elastic.co/t/how-to-transfer-one-elasticsearch-data-to-another-elasticsearch-by-using-filebeat-as-a-middleware/175664/4 "2019-04-06T06:34:02Z")

</div>

That is exactly what [cross-cluster replication](https://www.elastic.co/blog/follow-the-leader-an-introduction-to-cross-cluster-replication-in-elasticsearch) was designed for (commercial feature). Filebeat is not able to do this as it can not read from Elasticsearch. The traditional way of doing this (before or without CCR) is to simply write into all clusters in parallel, e.g. using Logstash.

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [April 7, 2019, 10:36am UTC](https://discuss.elastic.co/t/how-to-transfer-one-elasticsearch-data-to-another-elasticsearch-by-using-filebeat-as-a-middleware/175664/5 "2019-04-07T10:36:21Z")

</div>

[https://www.npmjs.com/package/elasticdump](https://www.npmjs.com/package/elasticdump) might be useful ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 5, 2019, 10:36am UTC](https://discuss.elastic.co/t/how-to-transfer-one-elasticsearch-data-to-another-elasticsearch-by-using-filebeat-as-a-middleware/175664/6 "2019-05-05T10:36:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
