Created
March 27, 2013 11:07
-
-
Save terrycojones/5253419 to your computer and use it in GitHub Desktop.
haproxy logging conf (/etc/rsyslog.d/49-haproxy.conf)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file added by Terry on Dec 3, 2012 | |
# See http://kvz.io/blog/2010/08/11/haproxy-logging/ | |
$ModLoad imudp | |
$UDPServerAddress 127.0.0.1 | |
$UDPServerRun 514 | |
local1.* -/var/log/haproxy_1.log | |
& ~ | |
# & ~ means not to put what matched in the above line anywhere else for the rest of the rules | |
# http://serverfault.com/questions/214312/how-to-keep-haproxy-log-messages-out-of-var-log-syslog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I also needed
in
/etc/haproxy/haproxy.cfg