# Reg. Pushing MongoDB data to Elasticsearch

**URL:** https://discuss.elastic.co/t/reg-pushing-mongodb-data-to-elasticsearch/31613
**Category:** Elasticsearch
**Created:** [October 5, 2015, 7:12am UTC](https://discuss.elastic.co/t/reg-pushing-mongodb-data-to-elasticsearch/31613 "2015-10-05T07:12:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![itsmoipri](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@itsmoipri](https://discuss.elastic.co/u/itsmoipri)
#### Post date: [October 5, 2015, 7:12am UTC](https://discuss.elastic.co/t/reg-pushing-mongodb-data-to-elasticsearch/31613/1 "2015-10-05T07:12:00Z")

</div>

Hi there,  
I have been trying to integrate my existing MongoDB with  
Elasticsearch for quite some time but with no luck. The goal is to add  
enhanced search and report generation( for which i am planning on using  
Kibana) on existing production data stored in MongoDB clusters.  
Approximately 80Gb data is available in my Databases.  
I am looking for the best method by which i can push existing  
data as well as real-time data onto ES.  
I already tried the MongoDB-river plugin for ES by Richard  
Louapre but am not satisfied with its performance. Firstly it doesn't even  
pull my entire MongoDB collection onto ES. And my data has nested  
objects..and this plugin doesn't support that either. Is this happening due  
to incorrect config from my side? Or are you aware of any instances where  
this plugin has worked smoothly with high volumes of data ( Approximately  
6-7 rivers running at the same time talking to several other MongoDB  
collections with Gigabytes of data)?  
Any alternate plugin or wrapper which can work with this volume  
of data or best method to go ahead with this will be highly appreciated.

Thanks,  
Priyanka

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [October 5, 2015, 7:36am UTC](https://discuss.elastic.co/t/reg-pushing-mongodb-data-to-elasticsearch/31613/2 "2015-10-05T07:36:49Z")

</div>

Rivers have been removed.

You can try logstash. I can see that there is a community plugin to read from MongoDB. Never tried it myself.

> **[phutchins/logstash-input-mongodb](https://github.com/phutchins/logstash-input-mongodb)**
>
> logstash-input-mongodb - MongoDB input plugin for Logstash

The other solution is to write your own code which reads Mongo and write to elasticsearch using bulks.

For real time aspects, may be you could consider doing that from the application which generates data? Write in both systems at the same time? Or use a message broker like Redis/Kafka/RabbitMQ in the middle?

My 2 cents

---

<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: [July 5, 2017, 11:46pm UTC](https://discuss.elastic.co/t/reg-pushing-mongodb-data-to-elasticsearch/31613/3 "2017-07-05T23:46:49Z")

</div>


