# Beats output to two ES clusters

**URL:** <https://discuss.elastic.co/t/beats-output-to-two-es-clusters/142326>\
**Category:** Beats\
**Created:** [July 31, 2018, 9:39am UTC](https://discuss.elastic.co/t/beats-output-to-two-es-clusters/142326 "2018-07-31T09:39:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanjeev\_Gopal](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Sanjeev\_Gopal](https://discuss.elastic.co/u/Sanjeev_Gopal)\
**Post date:** [July 31, 2018, 9:39am UTC](https://discuss.elastic.co/t/beats-output-to-two-es-clusters/142326/1 "2018-07-31T09:39:11Z")

</div>

I have seen posts about Logstash output to multiple ES clusters. But how about Beats? Rather, can I do this?

## metricbeat.yml

output.elasticsearch:  
hosts: ["cluster1-node1", "cluster1-node2", "cluster1-node3", "cluster2-node1", "cluster2-node2", "cluster2-node3"]

It appears to work fine on Linux, but am getting mixed results on Windows.

Am looking for tips/caveats.

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [July 31, 2018, 12:54pm UTC](https://discuss.elastic.co/t/beats-output-to-two-es-clusters/142326/2 "2018-07-31T12:54:24Z")

</div>

Hi,

Using multiple hosts is probably not doing what you expect. One event is only sent to one of the hosts (unless there is a failure). Beats can't duplicate events to different clusters. If that's what you want, you need to use Logstash.

---

<div class="post-metadata">

**Author:** ![Sanjeev\_Gopal](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Sanjeev\_Gopal](https://discuss.elastic.co/u/Sanjeev_Gopal)\
**Post date:** [July 31, 2018, 1:26pm UTC](https://discuss.elastic.co/t/beats-output-to-two-es-clusters/142326/3 "2018-07-31T13:26:54Z")

</div>

Thanks @adrisr! Will switch to using Logstash. I have another question, but will check existing threads first and post another question if needed.

---

<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:** [August 28, 2018, 3:27pm UTC](https://discuss.elastic.co/t/beats-output-to-two-es-clusters/142326/4 "2018-08-28T15:27:01Z")

</div>

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