# Fetch data from MongoDB and feed to Elasticsearch

**URL:** <https://discuss.elastic.co/t/fetch-data-from-mongodb-and-feed-to-elasticsearch/164113>\
**Category:** Logstash\
**Created:** [January 14, 2019, 9:10am UTC](https://discuss.elastic.co/t/fetch-data-from-mongodb-and-feed-to-elasticsearch/164113 "2019-01-14T09:10:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vivek_sharma/32/46948_2.png) [@Vivek\_Sharma](https://discuss.elastic.co/u/Vivek_Sharma)\
**Post date:** [January 14, 2019, 9:10am UTC](https://discuss.elastic.co/t/fetch-data-from-mongodb-and-feed-to-elasticsearch/164113/1 "2019-01-14T09:10:47Z")

</div>

Hi

Is there any way that we can fetch data from MongoDB (on some remote server) and feed it into Elasticsearch server.

I have a scenario where my data flows as given: SAP -\> Integration Layer -\> MongoDB (Remote server)

I have placed filebeat on SAP and Integration layer and I am able to fetch the data and feed into elasticsearch successfully.

How do I need to proceed with fetching the data from MongoDB?

Please suggest. If possible, please share any reference document which I can refer to.

Thanks

---

<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:** [February 11, 2019, 9:11am UTC](https://discuss.elastic.co/t/fetch-data-from-mongodb-and-feed-to-elasticsearch/164113/2 "2019-02-11T09:11:08Z")

</div>

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