linux - Haproxy not logging with rsyslog -


I want to set up HTTP logging in HAPRCC and I'm having some problems which are correctly output requests .

Here is the HAProxy contextual configuration:

  global log / dev / log local0 log / dev / log local1 notice maxconn 200000 tune.ssl.default-dh- the ultimate 2048 user Haproxy group haproxy daemon stats socket / tmp / sock1 user root group root mode 777 level administrator defaults global mode http options people these httplog options dontlognull option httpclose 3 retry the option maxconn redispatch 200000 backlog connect 20000 timeout time 5s customer expiry time of 50s Server 180000 balance roundrobin cookie timeout SERVERID Typing  

Here is the /etc/rsyslog.d/haproxy.conf file:

  Allowing in order to create an additional socket in the chroot of # haproxy Log in to chroot'ed to login via # / dev / haproxy processes $ addUnixListenSocket / var / lib / haproxy / dev / log # HAProxy message to a dedicated logfile if $ programname startswith 'haproxy' then / var / Log / haproxy.lo G & amp; ~  

I have restarted both haproxy and rsyslogd after making proper changes to ensure that they were raised /var/log/haproxy.log is also not being created . Any help would be appreciated.

"itemprop =" text ">

rsyslog configuration assumes a chroot'd HAProxy, which does not match the hypersonic config line

  chroot / var / lib / haproxy  
to

haproxy config for global verses, or adding changes

  $ AddUnixListenSocket / dev / log  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -