How connect logstash to elasticsearch cluster?

hi
i use this scale to manage my log in medium network :slight_smile:
Source ---->Logstash------>Redis-------->Logstash--------> Elasticsearch cluster
I have one Client Node, 3 Data -node, 1 master node.
now i have following question :
1- in logstash output I dont know that i must set master ip or client ip ?
2- when i type this command " curl -XGET 'http://kbn:9200/_cluster/health?pretty=true' " in client node the following message appear :

{
"cluster_name" : "cenlog",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 4,
"number_of_data_nodes" : 2,
"active_primary_shards" : 96,
"active_shards" : 192,
"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
}

in this message i have only 2 data-node but actually I config 3 data node

i would happy if help me

Thanks .

  1. Client nodes.

  2. What does _cat/nodes show?

[root@KBN ~]# curl -XGET 'kbn:9200/_cat/nodes'
172.24.36.24 172.24.36.24 16 38 0.00 d - es-data-01
172.24.36.25 172.24.36.25 17 39 0.16 d - es-data-02
172.24.36.21 172.24.36.21 11 97 0.00 - * es-master-01
172.24.36.27 172.24.36.27 4 59 0.04 c - es-client-01

Maybe your config is wrong then? It's only showing 2 data nodes.

no the same config as another data nodes

This shows that the cluster has 2 data nodes, 1 dedicated master mode and 1 client node. They even appear names accordingly. Check the config on the nodes.