# Collect log with UDP $ModLoad imudp $UDPServerAddress 127.0.0.1 $UDPServerRun 514 # Creating separate log files based on the severity local6.* /var/log/haproxy-traffic.log local6.notice /var/log/haproxy-admin.log if $programname == 'haproxy' and $msg contains 'backend = "monbackend"' then { action(type="omfile" file="/var/log/haproxy-traffic-monbackend.log") stop }