Logstash elsticsearch output

I am running the elasticsearch cluster of 6 node 3 master 2 data 1 coordinate.I am also running logstash in other node for testing purpose which request should go to which node i made pipeline file

output {
    elasticsearch {
    hosts => ["coordinate1:9200"]
    manage_template => false
    index => "logs-flow-%{+YYYY.MM.dd}"
  }
}

I made the changes the host field of output section of elasticsarch in pipeline file
for example
hosts => ["master:9200"] and after some time hosts => ["data1:9200"]
after some time i saw that logstash doesn't need to know which elasticsearch is master or data or coordinate.I think elasticsearch will automatically manage the this query like this request is for creating index this request is for holding the data..Am i thinking right ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.