docker-haproxy-certbot icon indicating copy to clipboard operation
docker-haproxy-certbot copied to clipboard

Enable haproxy.log with rsyslog

Open blackyzero opened this issue 8 years ago • 0 comments

Dear Team,

Thanks a lot for your great product.

I am using your docker image, and it works great. There are only few things, i'd like to suggest if possible to add into future release. At this time, i'd like to enable haproxy.log using rsyslog.

As for now, i installed rsyslog manually, then add following configure into /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 &~`

Then, i can get /var/log/haproxy.log, with useful output from haproxy daemon other than checking /var/log/supervisor/

Thanks a lot.

blackyzero avatar Apr 28 '17 04:04 blackyzero