Graylog unable to log into mongo replica


(Bob Gizynski) #1

If someone could point me in the right direction. This is the issue I am running into.

I created a mongo replica cluster for 3 nodes But graylog is not able to log into the mongo servers.

I created a user and am able to log into mongo on all three nodes.

This is the error message I am getting from my graylog servers. Any help would be greatly appreciated.

ERROR: Unable to connect to MongoDB. Is it running and the configuration correct?
Details: Command failed with error 13: 'not authorized on graylog to execute command { createIndexes: "pipeline_processor_pipelines", indexes: [ { key: { title: 1 }, name: "title_1", ns: "graylog.pipeline_processor_pipelines", unique: true } ] }' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "not authorized on graylog to execute command { createIndexes: \"pipeline_processor_pipelines\", indexes: [ { key: { title: 1 }, name: \"title_1\", ns: \"graylog.pipeline_processor_pipelines\", unique: true } ] }", "code" : 13 }

(Jochen) #2

It looks like the MongoDB user “graylog” doesn’t have sufficient permissions on the MongoDB database used by Graylog.


(Jan Doberstein) #3

please look into the documentation what rights are needed:

http://docs.graylog.org/en/2.4/pages/configuration/multinode_setup.html#mongodb-replica-set


(system) #4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.