i have two graylog servers. i try to access mongodb of one server from the other by using the mongodb_uri.
in the uri of the first i put the ip of the second server
mongodb_uri = mongodb://192.168.1.5:27017/graylog
but when i restart the first graylog server i keep getting this error message on it
org.graylog2.periodical.NodePingThread - Did not find meta info of this node. Re-registering.
and the connection between the first server and the second one is lost every few seconds/minutes
It can be that the graylog server was not able to make a connection to the remote mongodb. You can try testing the connection by using the mongo command from the remote server first:
I don’t know what options there are. Probably many. But at least it it easy to install mongo shell to a ubuntu installation (which ova image seems to be):
If the already included mongodb is from mongodb-org packages: sudo apt-get install mongodb-org-shell
If the already included mongodb is from ubuntu packages: sudo apt-get install mongodb-clients
You can check the already included mongodb with the command: dpkg -l | grep mongo