I am using Filebeat, Logstash, Elastic search, Kibana in my Kubernetes cluster to monitor all my application logs.
Let me explain the issue and share my configurations.
Filebeat collecting the logs and sending the events to the logstash pods, But I cloud observes load is not evenly distributed to the pods, tried with k8s service Cluster IP and Headless service.
Due to uneven the load my logstash queues are failing up and not processing as fast as input events from the filebeat.
In your case the configuration needs to be a little diferent.
The loadbalance option in the output should be used when beats are responsible for the load balancing, which means, when you have multiple hosts configured in the output, in your case you have only one hosts and the load balancing is done externally, not by beats.
Also, the connection from beats to Logstash is sticky, this can lead to uneven distribution when the destination host is a load balancer, which is your case, to avoid this you need to specify a ttl.
So, your output would need to be something like this:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.