Host down in hosts list

Hello,

What happens if a elastic search data node defined in the hosts list for elastic search output definition is down?
Will I get an error can't connect to ES, or will it try to find available data node to make the connection to? Another words, do I have to change my config file every time i add or remove a data node from the cluster

1 Like

What version are you on?

logstash 2.2.2 and ES 2.1.2

Take a look at https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-hosts

Its says it does load balancing, but does it mean that if a host down, then it will pick another host from the list to execute against? Or it will fail with that write?

It will pick another.