# How to sync elasticsearch data between DC, DR

**URL:** <https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651>\
**Category:** Elasticsearch\
**Created:** [January 6, 2022, 2:06pm UTC](https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651 "2022-01-06T14:06:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![banf](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@banf](https://discuss.elastic.co/u/banf)\
**Post date:** [January 6, 2022, 2:06pm UTC](https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651/1 "2022-01-06T14:06:13Z")

</div>

Hi Team,

We have `elasticsearch` running on our DC side so standalone as of now.

We would like to know how can we sync `elasticsearch` data to DR side so that if DR happens, we can still see data in `kibana`.

It is installed on `on-premise` environment on virtual machines.

Thanks,

---

<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:** [January 9, 2022, 10:09pm UTC](https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651/2 "2022-01-09T22:09:26Z")

</div>

Welcome to our community! 😃

CCR and CCS are designed for these, check out [Set up a cluster for high availability | Elasticsearch Guide [7.16] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/high-availability.html)

---

<div class="post-metadata">

**Author:** ![cool999](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cool999](https://discuss.elastic.co/u/cool999)\
**Post date:** [January 10, 2022, 12:52pm UTC](https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651/3 "2022-01-10T12:52:29Z")

</div>

Hi @Warkolm,

CCR comes in paid license. CCS although seems to be in free license but it looks more for searching on multiple clusters rather than doing replication.

So removing CCS from the discussion for now.

Can you or anyone suggest replication for open source solution.

Thanks,

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [January 10, 2022, 1:06pm UTC](https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651/4 "2022-01-10T13:06:04Z")

</div>

Potentially your could use logstash to pull from one Elasticsearch and push to another. I don't know how efficient it would be but that's my initial thought.

---

<div class="post-metadata">

**Author:** ![cool999](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cool999](https://discuss.elastic.co/u/cool999)\
**Post date:** [January 10, 2022, 1:17pm UTC](https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651/5 "2022-01-10T13:17:12Z")

</div>

Hi @legoguy1000, Thanks. Do you have reference document for this?

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [January 10, 2022, 1:29pm UTC](https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651/6 "2022-01-10T13:29:06Z")

</div>

[Elasticsearch input plugin | Logstash Reference [7.16] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html) to query and then an Elasticsearch output to the other cluster. What else u need, idk but that would be the start.

---

<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:** [January 10, 2022, 1:41pm UTC](https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651/7 "2022-01-10T13:41:24Z")

</div>

I do not think I have ever seen this used successfully. The standard method before CCR was available was to feed both clusters in parallel based on a message queue, e.g. Kafka. Eavh cluster would be indexed into using a dedicated Logstash instance. That comes with its own set if challenges, but I have seen that used at scale in the past.

It is a difficult problem to solve properly, which is why I suspect it is an Enterprise feature with a commercial licence.

---

<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:** [February 7, 2022, 1:41pm UTC](https://discuss.elastic.co/t/how-to-sync-elasticsearch-data-between-dc-dr/293651/8 "2022-02-07T13:41:37Z")

</div>

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