On 2/27/2018 10:28 PM, Igor Cicimov wrote:
Hi all,

I have haproxy 1.7.10-1ppa1~xenial installed on Ubuntu-16.04 and struggling to enable rsyslog-ing for the service.

I have rsyslog running and the following haproxy related config:

# cat /etc/rsyslog.d/49-haproxy.conf
# Create an additional socket in haproxy's chroot in order to allow logging via
# /dev/log to chroot'ed HAProxy processes
$AddUnixListenSocket /var/lib/haproxy/dev/log

# Send HAProxy messages to a dedicated logfile
if $programname startswith 'haproxy' then /var/log/haproxy.log
&~

Haproxy is started with:

global
     log /dev/log    local0
     log /dev/log    local1 debug
     maxconn         4096
     debug
     chroot          /var/lib/haproxy
     stats socket    /run/haproxy/admin.sock mode 660 level admin
     stats timeout   30s
     user            haproxy
     group           haproxy
     daemon

same as I had for Ubuntu-14.04.

What am I doing wrong?

​Thanks,
Igor​


* What do you get for ls -l /var/log/haproxy.log on each box?

* What do you get for ls -l /var/lib/haproxy/dev/log on each box?

* Were both of these boxes upgraded in-place from 14.04 or fresh installations of 16.04?

* Are you using the version of rsyslog that comes with Ubuntu 16.04 or the latest upstream package?

http://www.rsyslog.com/ubuntu-repository/

Reply via email to