# How to Ingest data from MongoDB database into ElasticSearch using Logstash

**URL:** https://discuss.elastic.co/t/how-to-ingest-data-from-mongodb-database-into-elasticsearch-using-logstash/216245
**Category:** Logstash
**Created:** [January 23, 2020, 12:52pm UTC](https://discuss.elastic.co/t/how-to-ingest-data-from-mongodb-database-into-elasticsearch-using-logstash/216245 "2020-01-23T12:52:36Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![jskishor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jskishor/32/61282_2.png) [@jskishor](https://discuss.elastic.co/u/jskishor)
#### Post date: [January 27, 2020, 2:33pm UTC](https://discuss.elastic.co/t/how-to-ingest-data-from-mongodb-database-into-elasticsearch-using-logstash/216245/5 "2020-01-27T14:33:34Z")

</div>

I am able to resolve the issue after placing the value of placeholder\_db\_dir to my local directory. Thanks for your help.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-ingest-data-from-mongodb-database-into-elasticsearch-using-logstash/216245)._
