Send logstash data to cluster

what does the correct output section look like?

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


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


host => "","" }

Needs to be this:

host => ["",""] }

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