Skip to content

Instantly share code, notes, and snippets.

@natacado
Created June 11, 2010 00:35
Show Gist options
  • Save natacado/433871 to your computer and use it in GitHub Desktop.
Save natacado/433871 to your computer and use it in GitHub Desktop.
$template PerHostHaProxy,"<%= @log_dir %>/%$YEAR%/%$MONTH%/%$DAY%/%HOSTNAME%/haproxy.log"
$template PerHostHaProxyErr,"<%= @log_dir %>/%$YEAR%/%$MONTH%/%$DAY%/%HOSTNAME%/haproxy-error.log"
# Support HAProxy logging on local0
# Suppress the logs from showing up in PerHostMessages
:progname, isequal, "haproxy"
local0.err ?PerHostHaProxyErr
local0.* ?PerHostHaProxy
& ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment