Filebeat logstash output loadbalance not working properly (not random)


I'm currently using filebeat 1.2.3, on Debian Jessie and unless I do not understand properly the documentation about the use of a host list and loadbalance: false in the logstash output, it seems not working as expected.

"...If set to false, the output plugin sends all events to only one host (determined at random) and will switch to another host if the selected one..."

It's always picking the host1 never host2.
I tried over 25 machines...

  ### Logstash as output
    # The Logstash hosts
    hosts: ["host1:5044","host2:5044"]

    # Number of workers per Logstash host.
    #worker: 1

    # Optional load balance the events between the Logstash hosts
    loadbalance: false

I'm I missing something? Or it is a bug?

Can you try filebeat 5.0 alpha3?

In 1.x releases there is a bug regarding the random number generator not being initialized correctly.


I'll try as soon as possible. But as I need to go in production soon, you can understand that's not an acceptable workaround.

I'm also available to do some advanced testing if needed.

Thank you very much.



so I tried with filebeat-5.0.0-alpha3 and apparently it works.

So what's next?


This topic was automatically closed after 21 days. New replies are no longer allowed.