mirror of https://github.com/Aidaho12/haproxy-wi
15 lines
421 B
Django/Jinja
15 lines
421 B
Django/Jinja
$ModLoad imudp
|
|
$UDPServerAddress 127.0.0.1
|
|
$UDPServerRun 514
|
|
|
|
if $programname startswith 'haproxy' then {
|
|
if $syslogseverity == 6 then
|
|
action(type="omfile" file="/var/log/haproxy/access.log")
|
|
stop
|
|
if $syslogseverity <= 3 then
|
|
action(type="omfile" file="/var/log/haproxy/error.log")
|
|
stop
|
|
if $syslogseverity <= 5 then
|
|
action(type="omfile" file="/var/log/haproxy/status.log")
|
|
stop
|
|
} |