# Which Elasticsearch node should logstash use in output filter?

**URL:** <https://discuss.elastic.co/t/which-elasticsearch-node-should-logstash-use-in-output-filter/81528>\
**Category:** Logstash\
**Created:** [April 6, 2017, 7:42pm UTC](https://discuss.elastic.co/t/which-elasticsearch-node-should-logstash-use-in-output-filter/81528 "2017-04-06T19:42:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZillaG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zillag/32/10505_2.png) [@ZillaG](https://discuss.elastic.co/u/ZillaG)\
**Post date:** [April 6, 2017, 7:42pm UTC](https://discuss.elastic.co/t/which-elasticsearch-node-should-logstash-use-in-output-filter/81528/1 "2017-04-06T19:42:51Z")

</div>

I have an ELK infrastructure that has

- 1 Kibana/Logstash node
- 1 Elasticsearch client node
- 3 Elasticsearch master nodes
- 2 Elasticsearch data nodes

On my Logstash's output filter, which node should I point my Logstash elasticsearch filter to, the client node, or the data nodes? IOW

This?

```
output {
  elasticsearch {
    hosts => ["https://elk-CLIENT:9200"]
  }
}

```

or this?

```
output {
  elasticsearch {
    hosts => ["https://elk-DATA-0:9200", "https://elk-DATA-1:9200"]
  }
}
```

---

<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:** [May 4, 2017, 7:43pm UTC](https://discuss.elastic.co/t/which-elasticsearch-node-should-logstash-use-in-output-filter/81528/2 "2017-05-04T19:43:12Z")

</div>

Closed on May 4, 2017, 7:43pm UTC

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