2022-06-02 09:08:37 +00:00
|
|
|
$ModLoad imudp
|
|
|
|
$UDPServerAddress 127.0.0.1
|
|
|
|
$UDPServerRun 514
|
2022-07-24 19:36:05 +00:00
|
|
|
module(load="builtin:omfile")
|
2022-06-02 09:08:37 +00:00
|
|
|
|
|
|
|
if $programname startswith 'Keepalived_vrrp' then {
|
|
|
|
if $syslogseverity == 6 then
|
|
|
|
action(type="omfile" file="{{keepalived_path_logs}}/status.log")
|
|
|
|
stop
|
|
|
|
if $syslogseverity <= 3 then
|
|
|
|
action(type="omfile" file="{{keepalived_path_logs}}/error.log")
|
|
|
|
stop
|
|
|
|
if $syslogseverity <= 5 then
|
|
|
|
action(type="omfile" file="{{keepalived_path_logs}}/status.log")
|
|
|
|
stop
|
|
|
|
}
|