HAproxy logging
 ubuntu@ubuntu:/etc/haproxy$ cat /etc/rsyslog.d/haproxy.conf # Create an additional socket in haproxy's chroot in order to allow logging via # /dev/log to chroot'ed HAProxy processes $ModLoad imudp $UDPServerRun 514 local0.*                        -/var/log/haproxy-0.log local1.*                        -/var/log/haproxy-1.log ### keep logs in localhost ## $AddUnixListenSocket /var/lib/haproxy/dev/log     -------------------    ubuntu@ubuntu:/etc/haproxy$ cat /etc/haproxy/haproxy.cfg   global    chroot /var/lib/haproxy    user haproxy    group haproxy    log 127.0.0.1   local0           log 127.0.0.1   local1 notice     daemon   frontend www        bind 192.168.40.128:8282    # haproxy public IP        default_backend as-backend    # backend used   backend as-backend      balance leastconn      mode http    server as1 192.168.40.128:8082 check    # application srv 1   defaults    log ...
Comments
Post a Comment