Skip to content

Instantly share code, notes, and snippets.

@davidmlentz
Created April 6, 2018 13:44
Show Gist options
  • Save davidmlentz/be863d0528cfccb50d5bc6a010bc1842 to your computer and use it in GitHub Desktop.
Save davidmlentz/be863d0528cfccb50d5bc6a010bc1842 to your computer and use it in GitHub Desktop.
# 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