HAProxy

Use HAProxy to act as a load balancer for the Logstash instances in your Receiver cluster.

HAProxy is an open source tcp or http load balancer. You add this component to add load balancing capabilities to your data collection architecture. You can also use it to protect the LFA from any changes that are made in the Receiver cluster.

HAProxy is an operating system package that you need to install with a tool such as yum or yast.

For more information about HAProxy, see http://www.haproxy.org/#docs

After you configure it, it runs as a service in your operating system. The configuration file for HAProxy is haproxy.cfg.

If you are monitoring log files with multiple lines, you must configure HAProxy with affinity for agents that is based on the IP information. For more information, see Single and multi-line log files.

You can also modify your HAProxy configuration to enable the statistics page. For more information, see http://www.haproxy.org/download/1.5/doc/configuration.txt.