I have two logstash servers. Do I have to choose between load balancing between them all the time vs using one as a fail over?
For instance, if I am load balancing winlogbeat output and one of the logstash servers goes down, will winlogbeat automatically start sending all logs to the remaining logstash server?
The docs seem to imply that the fail over only happens when loadbalance is set to false.
There is not much to add besides what is already explained in the documentation.
If set to true and multiple Logstash hosts are configured, the output plugin load balances published events onto all Logstash hosts. 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 becomes unresponsive. The default value is false.
If you set two or more logstash hosts, and do not set loadbalance: true, then it will pick one of the hosts at random and will only change if this host goes down.
If you set loadbalance: true it will then load balance the requests between all the configured hosts.
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.