Solved Graylog2 Cannot Connect to ElasticSearch Cluster
-
Getting this error. The Graylog interface won't even come up if ElasticSearch is not running, so I'm a bit confused as to why it feels that it cannot connect. The local client is successfully joined to an independent three node ElasticSearch cluster. All four nodes recognize all four nodes in the cluster. But I get this in the GrayLog2 Web Interface:
I've been through the Gralog docs on this and can't find anything that points me towards a solution and the logs don't have anything useful.
-
Got it. The node list needs to be master nodes only, but by default the non-master local 127.0.0.1 is left in the list. You have to remove it but keep the other nodes in for it to work.
-
Looking here but not finding anything useful, yet.
http://docs.graylog.org/en/2.0/pages/configuration/elasticsearch.html
-
Got it. The node list needs to be master nodes only, but by default the non-master local 127.0.0.1 is left in the list. You have to remove it but keep the other nodes in for it to work.