Filebeat does not loadbalance if hosts are from same subnet and a different subnet


I have the following configuration in my filebeat.yml .

#----------------------------- Logstash output --------------------------------
  # The Logstash hosts
  hosts: ["", ""]
  loadbalance: true

The server where the filebeat is running belongs to the network 10.133.132.x. When I try the above configuration I see that the logs are getting shipped only to the host on the same network even though the loadbalance is enabled.

There are no errors in the filebeat.log so connectivity is good.

The output's load balancing make no distinction between subnets, you should see logs shipped to both hosts. Maybe there is a configuration problem in one of the logstash hosts and is dropping events?

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