# Sync data from mongodb

**URL:** <https://discuss.elastic.co/t/sync-data-from-mongodb/266719>\
**Category:** Logstash\
**Created:** [March 9, 2021, 4:16pm UTC](https://discuss.elastic.co/t/sync-data-from-mongodb/266719 "2021-03-09T16:16:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gharsa\_Khouloud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gharsa_khouloud/32/84112_2.png) [@Gharsa\_Khouloud](https://discuss.elastic.co/u/Gharsa_Khouloud)\
**Post date:** [March 9, 2021, 4:16pm UTC](https://discuss.elastic.co/t/sync-data-from-mongodb/266719/1 "2021-03-09T16:16:01Z")

</div>

I just want to sync the data from mongodb to elastic using logstash. Its working good, when any new record comes in mongodb, logstash pushes into elastic. But when I update any record in mongodb then it does not change into elasticsearch even when i delete it nothing happen . I want to make changes in the config file so that when any record updates or deleted in mongo it should reflect in elastic as well.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 9, 2021, 4:24pm UTC](https://discuss.elastic.co/t/sync-data-from-mongodb/266719/2 "2021-03-09T16:24:43Z")

</div>

Answered on [StackOverflow](https://stackoverflow.com/questions/66550645/sync-data-from-mongodb-to-elasticsearch-via-logstash). This is not a use-case that the input can support.

---

<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:** [April 6, 2021, 4:24pm UTC](https://discuss.elastic.co/t/sync-data-from-mongodb/266719/3 "2021-04-06T16:24:47Z")

</div>

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