# Can we set up multiple output in metricbeat?

**URL:** <https://discuss.elastic.co/t/can-we-set-up-multiple-output-in-metricbeat/284168>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 14, 2021, 9:22am UTC](https://discuss.elastic.co/t/can-we-set-up-multiple-output-in-metricbeat/284168 "2021-09-14T09:22:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi.logs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abhi.logs](https://discuss.elastic.co/u/abhi.logs)\
**Post date:** [September 14, 2021, 9:22am UTC](https://discuss.elastic.co/t/can-we-set-up-multiple-output-in-metricbeat/284168/1 "2021-09-14T09:22:51Z")

</div>

Hello,

I want to set up multiple outputs in metricbeat.yml, Is it possible we can set up?  
output.elasticsearch:  
hosts: ["[abc.com](http://abc.com)"]  
username: "xxxxx"  
Password: "xxxx"

output.elasticsearch:  
hosts: ["[xyz.com](http://xyz.com)"]  
username: "xxxxx"  
Password: "xxxx"

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [September 14, 2021, 11:34am UTC](https://discuss.elastic.co/t/can-we-set-up-multiple-output-in-metricbeat/284168/2 "2021-09-14T11:34:53Z")

</div>

Hey @abhi.logs welcome to discuss 🙂

Beats don't support sending events to multiple outputs. For that you would need to run two instances of metricbeat with the same configuration except for the output and different data directories.

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [September 14, 2021, 6:54pm UTC](https://discuss.elastic.co/t/can-we-set-up-multiple-output-in-metricbeat/284168/3 "2021-09-14T18:54:13Z")

</div>

The other option is to send to Logstash and send to multiple outputs from there.

---

<div class="post-metadata">

**Author:** ![abhi.logs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abhi.logs](https://discuss.elastic.co/u/abhi.logs)\
**Post date:** [September 16, 2021, 4:29am UTC](https://discuss.elastic.co/t/can-we-set-up-multiple-output-in-metricbeat/284168/4 "2021-09-16T04:29:18Z")

</div>

Thanks Jaime and Alex

---

<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 14, 2021, 6:29am UTC](https://discuss.elastic.co/t/can-we-set-up-multiple-output-in-metricbeat/284168/5 "2021-10-14T06:29:23Z")

</div>

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