Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable haproxy.log with rsyslog #1

Open
blackyzero opened this issue Apr 28, 2017 · 0 comments
Open

Enable haproxy.log with rsyslog #1

blackyzero opened this issue Apr 28, 2017 · 0 comments
Assignees

Comments

@blackyzero
Copy link

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.

@nmarus nmarus self-assigned this Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants