Connect ES with MongoDB


(Jean Wisser) #1

Since river will be deprecated, what is the best way to index files from mongo db into elasticsearch ?

I heard that here is a plugin for logstash but is it the best way ?

Thanks,
Jean.


(Sarwar Bhuiyan) #2

I'd imagine first you have to decide what you want to store in Elasticsearch and at what points you get that from Mongodb (on writes? in bulk?). Once you know, there might be a small bit of coding you do on your application or script to generate events and push to something like a message broker from which logstash can grab and push to Elasticsearch. Or you may find just using one of the support Elasticsearch client libraries may do the trick.

Sarwar


(system) #3