Send logstash data to cluster

what does the correct output section look like?

output {
elasticsearch {
host => "172.17.20.207","172.17.20.208" }

}

will above still work as a cluster or am i kust sending the same data to two hosts independently?

This:

host => "172.17.20.207","172.17.20.208" }

Needs to be this:

host => ["172.17.20.207","172.17.20.208"] }

Logstash will send each event to exactly one of the listed servers.