2010年2月26日 星期五

Enable or fix logging for HAProxy load balancer

Enable or fix logging for HAProxy load balancer

On a RedHat/CentOS server, edit the value of SYSLOGD_OPTIONS in /etc/sysconfig/syslog:

SYSLOGD_OPTIONS=”-m 0 -r”


On a Debian/Ubuntu server, edit the value of SYSLOGD in /etc/default/syslogd:

SYSLOGD=”-r”


/etc/syslog.conf:

local0.* /var/log/haproxy.log


restart syslog service to apply changes:

service syslog restart

沒有留言: