Shabat Closer

Sunday, May 29, 2016

TECH : Enable haproxy log

TECH : Enable haproxy log


  1. at the top of /etc/haproxy/haproxy.cfg
  2. global
        log         127.0.0.1 local2
    

  3. in file /etc/rsyslog.conf
  4. # Provides UDP syslog reception
    $ModLoad imudp
    $UDPServerRun 514
    $UDPServerAddress 127.0.0.1
    
  5. in file  /etc/rsyslog.d/haproxy.conf
  6. local2.*     /var/log/haproxy.log
    

  7. restart services
    service rsyslog restart
    service haproxy restart
    

Enjoy!

No comments:

Post a Comment