here is the configuration of node 1 with IP: 192.168.1.1 :
cluster.name: Syslog
node.name: ColdServer
node.master: false
node.data: true
path.data: /var/log/ELK/data
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["192.168.1.1", "192.168.1.2"]
discovery.zen.minimum_master_nodes: 2
here is the configuration of node 2 with IP: 192.168.1.2 :
cluster.name: Syslog
node.name: HotServer
node.master: true
node.data: true
path.data: /var/lib/data
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["192.168.1.1", "192.168.1.2"]
discovery.zen.minimum_master_nodes: 2
here is the result of the request curl -XGET http://192.168.1.2:9200/_cluster/health?pretty :
{
"cluster_name" : "Syslog",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 3,
"active_shards" : 3,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
Do you have an idea of the cause that prevents me from adding the node to the cluster ?
Thanks!