# Monstache auto sync issue with elastic search

**URL:** <https://discuss.elastic.co/t/monstache-auto-sync-issue-with-elastic-search/377129>\
**Category:** Elastic Search\
**Created:** [April 15, 2025, 6:17am UTC](https://discuss.elastic.co/t/monstache-auto-sync-issue-with-elastic-search/377129 "2025-04-15T06:17:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagaraju\_92](https://avatars.discourse-cdn.com/v4/letter/n/c0e974/32.png) [@nagaraju\_92](https://discuss.elastic.co/u/nagaraju_92)\
**Post date:** [April 15, 2025, 6:17am UTC](https://discuss.elastic.co/t/monstache-auto-sync-issue-with-elastic-search/377129/1 "2025-04-15T06:17:33Z")

</div>

How can I make Monstache auto-sync new documents and collections in MongoDB to Elasticsearch without restarting the service?

I'm currently using Monstache to sync data from MongoDB to Elasticsearch. The initial sync works fine — all existing data gets indexed in Elasticsearch. However, when I insert new documents or create new collections in MongoDB, they are not automatically synced to Elasticsearch.

The only way I can get new data to appear in Elasticsearch is by restarting the Monstache service. This defeats the purpose of real-time syncing.

I've already configured Monstache to run as a systemd service, and the connection itself is working. What I need is for Monstache to continuously sync all changes (inserts, updates, and new collections) without requiring a restart.

Has anyone faced this issue? Is there a config setting or workaround to enable full real-time syncing, even when new collections or documents are added?
