# Does the lumberjack output plugin do the loadbalacing

**URL:** <https://discuss.elastic.co/t/does-the-lumberjack-output-plugin-do-the-loadbalacing/278252>\
**Category:** Logstash\
**Created:** [July 9, 2021, 8:11am UTC](https://discuss.elastic.co/t/does-the-lumberjack-output-plugin-do-the-loadbalacing/278252 "2021-07-09T08:11:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lemahdois](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@lemahdois](https://discuss.elastic.co/u/lemahdois)\
**Post date:** [July 9, 2021, 8:11am UTC](https://discuss.elastic.co/t/does-the-lumberjack-output-plugin-do-the-loadbalacing/278252/1 "2021-07-09T08:11:46Z")

</div>

Dear all,  
I am using lumberjack output plugin to send logs from logstash to logstash. I use this code

```auto
       lumberjack {
               codec => json
               hosts => ["XXX","YYY"]
               port => ZZZ
               ssl_certificate => "/SERVICE/logstash/certs/PPPP/lumberjack.cert"
       }

```

We checked that lumberjack redirect the flow automatically to YYY when the server XXX is shut down and vice versa. However, I want to ask if the workload become very huge, does the lumberjack protocol do load balancing between the servers XXX et YYY.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 9, 2021, 4:40pm UTC](https://discuss.elastic.co/t/does-the-lumberjack-output-plugin-do-the-loadbalacing/278252/2 "2021-07-09T16:40:07Z")

</div>

My reading of the [code](https://github.com/elastic/ruby-lumberjack/blob/9df247e644eaf10fd634e00d255e09f2a4f7f7bf/lib/lumberjack/client.rb#L28) is that picks one of the list of hosts to connect to and sends everything to that. It does not balance across multiple connections.

---

<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 6, 2021, 4:40pm UTC](https://discuss.elastic.co/t/does-the-lumberjack-output-plugin-do-the-loadbalacing/278252/3 "2021-08-06T16:40:26Z")

</div>

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