# Is it a good idea to use MongoDB change stream to send http requests to logstash to use the filter pipeline?

**URL:** <https://discuss.elastic.co/t/is-it-a-good-idea-to-use-mongodb-change-stream-to-send-http-requests-to-logstash-to-use-the-filter-pipeline/208249>\
**Category:** Logstash\
**Created:** [November 18, 2019, 3:52am UTC](https://discuss.elastic.co/t/is-it-a-good-idea-to-use-mongodb-change-stream-to-send-http-requests-to-logstash-to-use-the-filter-pipeline/208249 "2019-11-18T03:52:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kychanbp](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@kychanbp](https://discuss.elastic.co/u/kychanbp)\
**Post date:** [November 18, 2019, 3:52am UTC](https://discuss.elastic.co/t/is-it-a-good-idea-to-use-mongodb-change-stream-to-send-http-requests-to-logstash-to-use-the-filter-pipeline/208249/1 "2019-11-18T03:52:14Z")

</div>

I am looking for options to sync and enrich mongodb documents into elasticsearch.

I found a plugin [logstash-input-mongo](https://github.com/phutchins/logstash-input-mongodb). But it is not updated since 2017.

I also found a golang package called [Monstache](https://github.com/rwynn/monstache) which is quite active. To enrich the documents I can use the middleware or use default index pipeline in Elasticsearch. But the downside is that it is not official and may stop supporting some versions of Elasticsearch later.

So, I am looking for some officially supported ways to sync and enrich mongodb and elasticsearch.

I am wondering if I can leverage the [MongoDB Change Stream](https://docs.mongodb.com/manual/changeStreams/) and send the change in JSON through http request to Logstash. Then I can do the filtering inside logstash and send to Elasticsearch.

Then everything is officially supported. Is it a good idea?

---

<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, 2019, 3:52am UTC](https://discuss.elastic.co/t/is-it-a-good-idea-to-use-mongodb-change-stream-to-send-http-requests-to-logstash-to-use-the-filter-pipeline/208249/2 "2019-12-16T03:52:15Z")

</div>

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