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

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

I found a plugin logstash-input-mongo. But it is not updated since 2017.

I also found a golang package called 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 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?

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