[root@node01 ~]# vim /etc/rsyslog.conf
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
... ...
# Save haproxy messages also to haproxy.log
local2.* /var/log/haproxy.log

[root@node01 ~]# vim /etc/rsyslog.conf
[root@node01 ~]# systemctl restart rsyslog.service
Display all 261 possibilities? (y or n)
[root@node01 ~]# systemctl restart rsyslog.service
[root@node01 ~]# systemctl restart haproxy.service
[root@node01 ~]# cat /var/log/haproxy.log
Jan 14 13:13:04 localhost haproxy[17388]: Proxy stats started.