I have enabled the MongoDB authentication in Graylog. But it did not worked as expected.
the DB role which I have selected was “root” and below was the error.
2019-01-12T07:01:34.584+0000 I ACCESS [conn43] Unauthorized: not authorized on graylog to execute command { createIndexes: “users”, indexes: [ { key: { roles: 1 }, name: “roles_1”, ns: “graylog.users” } ] }
2019-01-12T07:01:34.780+0000 I ACCESS [conn43] Unauthorized: not authorized on graylog to execute command { find: “nodes”, filter: { node_id: “6ad654b2-dc1d-45af-ab7e-bbc1279b9a39” }, limit: 1, singleBatch: true }
2019-01-12T07:01:34.780+0000 I ACCESS [conn47] Unauthorized: not authorized on graylog to execute command { find: “cluster_events”, filter: { consumers: { $nin: [ “6ad654b2-dc1d-45af-ab7e-bbc1279b9a39” ] } }, sort: { timestamp: 1 } }
2019-01-12T07:01:34.887+0000 I ACCESS [conn47] Unauthorized: not authorized on graylog to execute command { find: “roles”, filter: {} }
I have reverted the change. Please confirm if the below role is sufficient for Mongod DB
roles: [ { role: “readWrite”, db: “graylog” },
{ role: “dbAdmin”, db: “graylog” }]
Also I am running two node cluster. But now one node (primary) is not processing any message.
Node 1 In 0 / Out 0 msg/s.
The journal contains 0 unprocessed messages in 1 segment. 0 messages appended, 0 messages read in the last second.
Node2 In 9,283 / Out 9,278 msg/s.
The journal contains 1,520 unprocessed messages in 4 segments. 6,733 messages appended, 6,733 messages read in the last second.
When you run a cluster - ALL Nodes need to be configured in the same way. When running one Node with Authentication and one without it is very likely that you create a total mess.
Send messages manually to the node that is not processing from the node itself, from a network host and checked if that is going into?
You had mixed two issues in your initial posting and for me as a reader it is not clear what is the current issue you are talking about and what is the current state.