Enabling HAProxy 1.7 logging on CentOS 7.x?

Trying to troubleshoot HAProxy connectivity, but can’t find any solid documentation on how to enable HAProxy to output dedicated logging to a dedicated HAProxy logfile such as /var/log/haproxy.log under CentOS 7.4.

Where might I find documentation that offers very explicit instructions for how to enable haproxy logging under CentOS 7.x?

you can use this articles :

https://www.e2enetworks.com/help/knowledge-base/enable-logging-of-haproxy-in-rsyslog/

https://webdevwonders.com/haproxy-load-balancer-setup-including-logging-on-debian/

1 Like