Trying to set up my cluster and I cannot get the servers to connect.
The Web interface keeps telling me it can’t connect to the cluster.
/etc/graylog-server/server.conf:
is_master = true
node_id_file = /etc/graylog/server/node-id
password_secret = xxxxxxxxxxxxxxx
root_username = xxxxxxxx
root_password_sha2 = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
plugin_dir = /usr/share/graylog-server/plugin
rest_listen_uri = http://10.10.xx.xx:9000/api/
web_listen_uri = http://10.10.xx.xx:9000
rotation_strategy = count
elasticsearch_max_docs_per_index = 20000000
elasticsearch_max_number_of_indices = 20
retention_strategy = delete
elasticsearch_shards = 4
elasticsearch_replicas = 0
#elasticsearch_index_prefix = graylog
#elasticsearch_template_name = graylog-internal
allow_leading_wildcard_searches = false
allow_highlighting = false
#elasticsearch_cluster_name = graylog
#elasticsearch_node_name_prefix = graylog-
#elasticsearch_discovery_zen_ping_unicast_hosts = 127.0.0.1:9300
elasticsearch_discovery_zen_ping_unicast_hosts = graylog1.example.com:9300,graylog2.example.com:9300
#elasticsearch_discovery_zen_ping_unicast_hosts = 198.51.100.23:9300, 198.51.100.42:9300
#elasticsearch_node_master = false
#elasticsearch_node_data = false
elasticsearch_network_host = 10.10.xx.xx
#elasticsearch_network_bind_host = 10.10.xx.xx
#elasticsearch_network_publish_host = 10.10.xx.xx
elasticsearch_analyzer = standard
Am I supposed to configure the cluster settings in server.conf or elasticsearch.yml?
I have tried both and a combination of the two, and it still won’t connect.
I’m thinking it may have something to do with the default clustername that was assigned at installation.
Using Curl on the localhost on both machines I get this:
{
“name” : “Kingpin”,
“cluster_name” : “elasticsearch”,
“cluster_uuid” : “uPaq5N9rS3CmYi7DoXHamw”,
“version” : {
“number” : “2.4.4”,
“build_hash” : “fcbb46dfd45562a9cf00c604b30849a6dec6b017”,
“build_timestamp” : “2017-01-03T11:33:16Z”,
“build_snapshot” : false,
“lucene_version” : “5.5.2”
},
“tagline” : “You Know, for Search”
}
{
“name” : “Master Pandemonium”,
“cluster_name” : “elasticsearch”,
“cluster_uuid” : “cxNgUKvrRPGFweAxVBe-0w”,
“version” : {
“number” : “2.4.4”,
“build_hash” : “fcbb46dfd45562a9cf00c604b30849a6dec6b017”,
“build_timestamp” : “2017-01-03T11:33:16Z”,
“build_snapshot” : false,
“lucene_version” : “5.5.2”
},
“tagline” : “You Know, for Search”
}
Thanks in advance for any help.