I've been following the instructions found here, https://www.haproxy.com/blog/introduction-to-haproxy-logging/, to setup our logging. As documented, I made an rsyslog config file, haprorxy_log.conf, and restarted rsyslog:
# Collect log with UDP
$ModLoad imudp
$UDPServerAddress 127.0.0.1
$UDPServerRun 514
# Creating separate log files based on the severity
local0.* /home/user1/logs/haproxy/haproxy.log
Following this, I put the required rule in the global settings for the config file:
global
log 127.0.0.1:514 local0
maxconn 4096
quiet
user root
group root
#/installs version
defaults
log global
mode http
retries 3
timeout client 3600s
timeout connect 3600s
timeout server 3600s
option httplog
balance roundrobin
So far, the only difference I have seen is that when I start haproxy with the logging line in the global settings, it outputs warnings for the config file to the console. I have not seen a file generated for this under /home/user1/logs/haproxy/. Are there any other steps I should take?