Enable receiving logs port 514/UDP and log them in specified haproxy log files
//edit rsyslog.conf
vim /etc/rsyslog.conf
//enable udp
$ModLoad imudp
$UDPServerRun 514
//edit rsyslog.conf
vim /etc/rsyslog.conf
//enable udp
$ModLoad imudp
$UDPServerRun 514
//add the log files
local0.* -/var/log/haproxy0.log
local1.* -/var/log/haproxy1.log
No comments:
Post a Comment