Skip to content

Enable haproxy.log with rsyslog #1

@blackyzero

Description

@blackyzero

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions