# Multiple elasticsearch clusters for output

**URL:** <https://discuss.elastic.co/t/multiple-elasticsearch-clusters-for-output/172503>\
**Category:** Logstash\
**Created:** [March 15, 2019, 10:10am UTC](https://discuss.elastic.co/t/multiple-elasticsearch-clusters-for-output/172503 "2019-03-15T10:10:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasony](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jasony](https://discuss.elastic.co/u/jasony)\
**Post date:** [March 15, 2019, 10:10am UTC](https://discuss.elastic.co/t/multiple-elasticsearch-clusters-for-output/172503/1 "2019-03-15T10:10:35Z")

</div>

Hello

I am currently managing logstash-elasticsearch set. Per customer request, we need to add 2nd elasticsearch cluster but current logstashes will be used same and deliver logs to both clusters.

Is it possible to set multiple elasticsearch clusters as output in each logstash node?

Please advise. Thanks!

---

<div class="post-metadata">

**Author:** ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)\
**Post date:** [March 15, 2019, 10:54am UTC](https://discuss.elastic.co/t/multiple-elasticsearch-clusters-for-output/172503/2 "2019-03-15T10:54:37Z")

</div>

It is. Just add a second `elasticsearch {}` to Logstash outputs.

---

<div class="post-metadata">

**Author:** ![jasony](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jasony](https://discuss.elastic.co/u/jasony)\
**Post date:** [March 15, 2019, 2:07pm UTC](https://discuss.elastic.co/t/multiple-elasticsearch-clusters-for-output/172503/3 "2019-03-15T14:07:08Z")

</div>

Thank you for your confirmation. 😀

---

<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:** [April 12, 2019, 2:07pm UTC](https://discuss.elastic.co/t/multiple-elasticsearch-clusters-for-output/172503/4 "2019-04-12T14:07:16Z")

</div>

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