Created
April 6, 2018 13:44
-
-
Save davidmlentz/be863d0528cfccb50d5bc6a010bc1842 to your computer and use it in GitHub Desktop.
This file contains 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
# Set up to collect HAProxy logs via UDP: | |
$ModLoad imudp | |
$UDPServerAddress 127.0.0.1 | |
$UDPServerRun 514 | |
# Define the log files where local0 and local1 will write: | |
$template haproxy-access,"/var/log/haproxy/haproxy-access.log" | |
$template haproxy-events,"/var/log/haproxy/haproxy-events.log" | |
local0.* -?haproxy-access | |
local1.* -?haproxy-events |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment