Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELASTICSEARCH connect MONGOLAB BDD seems empty #583

Open
gsarfati opened this issue May 10, 2016 · 0 comments
Open

ELASTICSEARCH connect MONGOLAB BDD seems empty #583

gsarfati opened this issue May 10, 2016 · 0 comments

Comments

@gsarfati
Copy link

gsarfati commented May 10, 2016

Hello,
I'm trying to connect elasticsearch hosted on aws ec2 to my database Mongo DB hosted on MongoLab with elasticsearch-river-mongodb , I created a user oplog..

There is no problem when connect elasticsearch with mongodb hosted in the same server without credentials, there is no problem when connect to hosted mongodb via mongo driver too but when I'm trying to connect with mongolab there is no error but the bdd seems empty. I think my credential syntax with elasticsearch-river-mongodb is wrong , can you help me ? Thank you !

elasticsearch version 1.7.3
mongodb version 2.6.12
elasticsearch-river-mongodb version 2.0.11
elasticsearch-mapper-attachments version 2.7.1

curl -XPUT "127.0.0.1:9200/_river/Customer/_meta" -d '
{
  "type": "mongodb",
  "mongodb": {
    "servers": [
      { 
        "host": "ds012345-a0.mlab.com",
        "port": 19202
      }
    ],
     "credentials": [
      { "db": "production", "user": "api", "password": "XXX" },
      { "db": "admin", "user": "elasticsearch", "password": "XXXX" }
    ],
    "options": { "secondary_read_preference": true },
    "db": "production",
    "collection": "Customer"
 },
  "index": {
    "name": "Customer",
    "type": "Customer"
  }
}'
@gsarfati gsarfati changed the title ELASTICSEARCH connect MONGOLAB BDD seems emty ELASTICSEARCH connect MONGOLAB BDD seems empty May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant