# Send logstash data to cluster

**URL:** <https://discuss.elastic.co/t/send-logstash-data-to-cluster/49644>\
**Category:** Logstash\
**Created:** [May 10, 2016, 11:42am UTC](https://discuss.elastic.co/t/send-logstash-data-to-cluster/49644 "2016-05-10T11:42:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssi](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@ssi](https://discuss.elastic.co/u/ssi)\
**Post date:** [May 10, 2016, 11:42am UTC](https://discuss.elastic.co/t/send-logstash-data-to-cluster/49644/1 "2016-05-10T11:42:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 10, 2016, 12:21pm UTC](https://discuss.elastic.co/t/send-logstash-data-to-cluster/49644/2 "2016-05-10T12:21:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:58am UTC](https://discuss.elastic.co/t/send-logstash-data-to-cluster/49644/3 "2017-07-06T04:58:20Z")

</div>


