Hi,

Just 2 things.

First one in your config (global context) :


  log /dev/log local0 info
  log /dev/log local0 notice

Second one, in rsyslog.conf (if you are on Ubuntu): 

create a /etc/rsyslog.d/haproxy.conf

if ($programname == 'haproxy' and $syslogseverity-text == 'info') then 
-/var/log/haproxy/haproxy-info.log
& ~
if ($programname == 'haproxy' and $syslogseverity-text == 'notice') then 
-/var/log/haproxy/haproxy-notice.log
& ~

Restart haproxy and rsyslog, and it works, you have your logs in 
/var/log/haproxy/*

Regards





Le Samedi 7 décembre 2013 18h35, Fred Pedrisa <[email protected]> a écrit :
 
Hello,
 
I wanted to enable the usage of log files, to check what is happening with the 
tcp connections, that sometimes are closed without a clear reason.
 
How can I do it ?

Reply via email to