richardwilly98 / elasticsearch-river-mongodb

MongoDB River Plugin for ElasticSearch
1.12k stars 215 forks source link

Always river to localhost mongo #553

Closed fabioDMFerreira closed 8 years ago

fabioDMFerreira commented 8 years ago

Every time I try to river a collection from a different host with mongodb, It rivers the same collection from my localhost mongo instance.

I had installed mongodb 2.6.6, elasticsearch 1.7.1 and the plugins elasticsearch-mapper-attachments 2.7.0 and elasticsearch-river-mongodb 2.0.1 in my machine. The host that I am trying river has the version 2.6.9.

I river correctly all collections from mongodb in local instance but for some reason I can't do it with instances in different hosts. The body of my river request is:

PUT /_river/db.collection/_meta { "type": "mongodb", "mongodb": { "servers": [ { "host": "XXX.XXX.XXX.XXX", "port": "27017" } ], "db": "db", "collection": "collection" }, "index": { "name": "db", "type": "collection" } }

Someone can help?