# Continuous data synchronization between mongodb and elasticsearch

**URL:** <https://discuss.elastic.co/t/continuous-data-synchronization-between-mongodb-and-elasticsearch/255788>\
**Category:** Logstash\
**Created:** [November 18, 2020, 6:31am UTC](https://discuss.elastic.co/t/continuous-data-synchronization-between-mongodb-and-elasticsearch/255788 "2020-11-18T06:31:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Durga\_AK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/durga_ak/32/77014_2.png) [@Durga\_AK](https://discuss.elastic.co/u/Durga_AK)\
**Post date:** [November 18, 2020, 6:31am UTC](https://discuss.elastic.co/t/continuous-data-synchronization-between-mongodb-and-elasticsearch/255788/1 "2020-11-18T06:31:31Z")

</div>

I have installed ELK stack in AWS EC2. I have created a logstash config file and I'm able to ingest existing data from mongodb to elastic search using the logstash -f config file. Now I have inserted few data into mongodb. I want those data in Elastic search. I tried to run the logstash -f config file command, it shows there is already an instance running. I tried stopping the logstash and tried again, its still the same.

What I want is, using logstash I need continuous data synchronization from mongodb to Elastic search. Please suggest.

---

<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:** [November 18, 2020, 7:18am UTC](https://discuss.elastic.co/t/continuous-data-synchronization-between-mongodb-and-elasticsearch/255788/2 "2020-11-18T07:18:02Z")

</div>

There's tonnes of existing topics on this, I would suggest you check those ones out 🙂

AFAIK there's nothing in the Elastic Stack that can handle this for you sorry.

---

<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:** [December 16, 2020, 7:18am UTC](https://discuss.elastic.co/t/continuous-data-synchronization-between-mongodb-and-elasticsearch/255788/3 "2020-12-16T07:18:03Z")

</div>

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