haproxy 配置日志

jrhppt01:/root# vim /etc/haproxy/haproxy.cfg

# this config needs haproxy-1.1.28 or haproxy-1.2.1

global
        log 127.0.0.1   local3
        maxconn 65535
        chroot /usr/local/haproxy
        uid 401
        gid 401
        daemon
        ssl-default-bind-options no-sslv3
		
		
		local3.*    /var/log/haproxy/haproxy.log

#keepalived -S 0
local0.*	/var/log/keepalived/keepalived.log
jrhppt01:/root# cat /etc/rsyslog.conf

posted @ 2016-07-16 22:01  czcb  阅读(122)  评论(0编辑  收藏  举报