# Which nodes should be provided in logstash

**URL:** <https://discuss.elastic.co/t/which-nodes-should-be-provided-in-logstash/246868>\
**Category:** Elasticsearch\
**Created:** [August 30, 2020, 8:56am UTC](https://discuss.elastic.co/t/which-nodes-should-be-provided-in-logstash/246868 "2020-08-30T08:56:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohitarorait82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohitarorait82/32/82981_2.png) [@rohitarorait82](https://discuss.elastic.co/u/rohitarorait82)\
**Post date:** [August 30, 2020, 8:56am UTC](https://discuss.elastic.co/t/which-nodes-should-be-provided-in-logstash/246868/1 "2020-08-30T08:56:36Z")

</div>

Hi All,

We have a cluster 6 nodes (1 coordinating node, 5 data node out of which 3 are master node)  
Can you please suggest which node needs to be provided in logstash file, should we give all the nodes of cluster or only coordinating node?

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [August 30, 2020, 11:24am UTC](https://discuss.elastic.co/t/which-nodes-should-be-provided-in-logstash/246868/2 "2020-08-30T11:24:41Z")

</div>

It is important to exclude [dedicated master nodes] [http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html](http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html)) from the `hosts` list to prevent logstash from sending bulk requests to the master nodes. So this parameter should only reference either data or client nodes (or coordinating node that can only route requests, handle the search reduce phase, and distribute bulk indexing. Essentially, coordinating only nodes behave as smart load balancers) in Elasticsearch.

Check this [link](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-hosts)

So for your config, you can provide all nodes

---

<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:** [September 27, 2020, 11:24am UTC](https://discuss.elastic.co/t/which-nodes-should-be-provided-in-logstash/246868/3 "2020-09-27T11:24:53Z")

</div>

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