You must enable syslog to listen via IP (default is socket only).  On
centos/redhat, modify /etc/sysconfig/syslog to include -r option, such as:

SYSLOGD_OPTIONS="-m 0 -r"

 

 

 

From: vaibhav pol [mailto:[email protected]] 
Sent: Tuesday, January 27, 2009 6:34 AM
To: [email protected]
Subject: Log setting in haproxy configure file

 

I am using linux and i setup haproxy 
it's working fine but it not able to log 
i started the haproxy as root user 

and i am seeing log in /var/log/message file but it not logging anything.


anything i missing in configure file .

Please suggest me.


below is my configure file
#haproxy.cfg 

global
       log 127.0.0.1   syslog
       maxconn 4096
       daemon

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        option redispatch
        retries 3
        maxconn 2000
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000




listen http_proxy 192.168.2.111:8022
       mode http
       balance source
       cookie SERVERID insert indirect
       option httpclose
       option forwardfor
       server tb2 13.1.1.3:8022 cookie A check
       server tb1 13.1.1.4:8022 cookie B check





Thanks
Vaibhav  Pol

Reply via email to