[Bug 1524635] [NEW] haproxy syslog configuration causes double logging
Launchpad Bug Tracker
1524635 at bugs.launchpad.net
Mon Dec 14 13:50:29 UTC 2015
You have been subscribed to a public bug by Robie Basak (racb):
The current rsyslogd configuration as provided by the rsyslogd package
causes double logging to occur.
Steps to Reproduce:
1) Install haproxy via whatever normal means (apt-get etc)
2) Configure it to listen on at least one port, even just the stats port
3) Visit the URL configured
You'll see logs generated in both /var/log/syslog (via
/etc/rsyslogd.d/50-default.conf) and /var/log/haproxy.log (via
/etc/rsyslog.d/haproxy.conf).
Steps to fix:
1) mv /etc/rsyslog.d/haproxy.conf 49-haproxy.conf # This could be any number less than 50, to have it read before the default.conf
2) Restart rsyslog.
3) Access the provided service
This will cause the entries to be written out to only
/var/log/haproxy.log.
The testing was done on a Ubuntu 14.04 server (trusty) with haproxy
1.4.24-2ubuntu0.3 installed:
$ lsb_release -rd
Description: Ubuntu 14.04.3 LTS
Release: 14.04
$ dpkg-query -W haproxy
haproxy 1.4.24-2ubuntu0.3
Please let me know if you have any further questions.
** Affects: haproxy (Ubuntu)
Importance: Medium
Status: Confirmed
** Tags: canonical-bootstack
--
haproxy syslog configuration causes double logging
https://bugs.launchpad.net/bugs/1524635
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report.
More information about the Ubuntu-server-bugs
mailing list