ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Graylog2 Cannot Connect to ElasticSearch Cluster

    IT Discussion
    elasticsearch elasticsearch 2 centos 7 graylog graylog2
    1
    3
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      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:

      0_1471719882797_Screenshot from 2016-08-20 15-02-42.png

      0_1471719897848_Screenshot from 2016-08-20 15-02-58.png

      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.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        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.

        1 Reply Last reply Reply Quote 2
        • scottalanmillerS
          scottalanmiller
          last edited by

          Looking here but not finding anything useful, yet.

          http://docs.graylog.org/en/2.0/pages/configuration/elasticsearch.html

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            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.

            1 Reply Last reply Reply Quote 2
            • 1 / 1
            • First post
              Last post