# How to output Filebeat logs to multiple hosts without load balancing?

**URL:** <https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 3, 2016, 9:15pm UTC](https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444 "2016-03-03T21:15:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![acarrasquillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/acarrasquillo/32/8253_2.png) [@acarrasquillo](https://discuss.elastic.co/u/acarrasquillo)\
**Post date:** [March 3, 2016, 9:15pm UTC](https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444/1 "2016-03-03T21:15:28Z")

</div>

Hello. I'm trying to send all the logs to multiple hosts, each host should receive all the logs being read by Filebeat. Is there a way to do this without having one Filebeat Service per host with a specific configuration. Please note that I don't want to load balance the logs. I'm trying to study the same logs on two different systems. Thanks for the help!

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 3, 2016, 9:29pm UTC](https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444/2 "2016-03-03T21:29:35Z")

</div>

Is the following what you are looking for? [https://github.com/elastic/beats/issues/1035](https://github.com/elastic/beats/issues/1035)

---

<div class="post-metadata">

**Author:** ![acarrasquillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/acarrasquillo/32/8253_2.png) [@acarrasquillo](https://discuss.elastic.co/u/acarrasquillo)\
**Post date:** [March 3, 2016, 9:42pm UTC](https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444/3 "2016-03-03T21:42:05Z")

</div>

Thanks, this looks like it is what I need.

I'm sending logs to a logstash server and to a graylog server.

Then in my filebeat.yml I can have something like this:

```
output:
    ### Logstash as output
    logstash:
        # The Logstash Development hosts
        hosts: ["logstash.dev.com:5044"]
        .
        .
        .
    logstash:
        # The Logstash Production hosts
        hosts: ["logstash.prod.com:5044"]
        .  
        .
        .

```

Does that looks good? @ruflin

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 3, 2016, 10:17pm UTC](https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444/4 "2016-03-03T22:17:15Z")

</div>

The issue I sent was opened 7 days ago and is only in a discussion phase. There is nothing implemented or decided yet.

---

<div class="post-metadata">

**Author:** ![acarrasquillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/acarrasquillo/32/8253_2.png) [@acarrasquillo](https://discuss.elastic.co/u/acarrasquillo)\
**Post date:** [March 3, 2016, 10:19pm UTC](https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444/5 "2016-03-03T22:19:14Z")

</div>

@ruflin thanks for the quick reply. I will then follow the conversations of the issue.

Thanks!!

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [March 4, 2016, 12:05am UTC](https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444/6 "2016-03-04T00:05:30Z")

</div>

Also check [my reply](https://github.com/elastic/beats/issues/1035#issuecomment-189205217) why I think it's actually a bad idea to have filebeat output to dev and production logstash at the same time.

---

<div class="post-metadata">

**Author:** ![acarrasquillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/acarrasquillo/32/8253_2.png) [@acarrasquillo](https://discuss.elastic.co/u/acarrasquillo)\
**Post date:** [March 4, 2016, 12:08am UTC](https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444/7 "2016-03-04T00:08:08Z")

</div>

@steffens thanks I will look into it. I appreciate your time!

---

<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:** [July 5, 2017, 9:55pm UTC](https://discuss.elastic.co/t/how-to-output-filebeat-logs-to-multiple-hosts-without-load-balancing/43444/8 "2017-07-05T21:55:00Z")

</div>


