# Logstash to ES cluster

**URL:** <https://discuss.elastic.co/t/logstash-to-es-cluster/99830>\
**Category:** Logstash\
**Created:** [September 8, 2017, 10:17am UTC](https://discuss.elastic.co/t/logstash-to-es-cluster/99830 "2017-09-08T10:17:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumya1](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@soumya1](https://discuss.elastic.co/u/soumya1)\
**Post date:** [September 8, 2017, 10:17am UTC](https://discuss.elastic.co/t/logstash-to-es-cluster/99830/1 "2017-09-08T10:17:36Z")

</div>

how should be the conf for Sending data to ES cluster (of 3 nodes) from Logstash

should i give all the urls of the cluster in output as:

output {  
elasticsearch { hosts =\> ["es-client-01:9200","es-master-01:9200","es-data-01"] }  
}

or  
only a single ES instance is enough?

pls explain the internals of Load balancing

thanks  
soumya

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 8, 2017, 10:22am UTC](https://discuss.elastic.co/t/logstash-to-es-cluster/99830/2 "2017-09-08T10:22:22Z")

</div>

If you only have a single data node I don't think there is any point in creating separate node types.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 8, 2017, 10:22am UTC](https://discuss.elastic.co/t/logstash-to-es-cluster/99830/3 "2017-09-08T10:22:28Z")

</div>

List all 3.  
See [https://www.elastic.co/guide/en/logstash/5.5/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-hosts](https://www.elastic.co/guide/en/logstash/5.5/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-hosts) for more.

---

<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:** [October 6, 2017, 10:22am UTC](https://discuss.elastic.co/t/logstash-to-es-cluster/99830/4 "2017-10-06T10:22:43Z")

</div>

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