2017-04-21 10:22:44 -05:00
|
|
|
## Quagga rules
|
|
|
|
|
2023-09-12 18:53:45 -05:00
|
|
|
template(name="prog_msg" type="list") {
|
|
|
|
property(name="msg")
|
|
|
|
constant(value="\n")
|
|
|
|
}
|
|
|
|
|
|
|
|
$ModLoad omprog
|
|
|
|
|
2020-12-10 10:44:34 -06:00
|
|
|
if re_match($programname, "bgp[0-9]*#(frr|zebra|staticd|watchfrr)") then {
|
|
|
|
/var/log/frr/zebra.log
|
2023-09-12 18:53:45 -05:00
|
|
|
action(type="omprog"
|
|
|
|
binary="/usr/bin/rsyslog_plugin -r /etc/rsyslog.d/zebra_regex.json -m sonic-events-bgp"
|
|
|
|
output="/var/log/rsyslog_plugin.log"
|
|
|
|
template="prog_msg")
|
2017-04-21 10:22:44 -05:00
|
|
|
stop
|
|
|
|
}
|
|
|
|
|
2020-12-10 10:44:34 -06:00
|
|
|
if re_match($programname, "bgp[0-9]*#bgpd") then {
|
|
|
|
/var/log/frr/bgpd.log
|
2023-09-12 18:53:45 -05:00
|
|
|
action(type="omprog"
|
|
|
|
binary="/usr/bin/rsyslog_plugin -r /etc/rsyslog.d/bgpd_regex.json -m sonic-events-bgp"
|
|
|
|
output="/var/log/rsyslog_plugin.log"
|
|
|
|
template="prog_msg")
|
2017-04-21 10:22:44 -05:00
|
|
|
stop
|
|
|
|
}
|
|
|
|
|
|
|
|
## Teamd rules
|
|
|
|
|
|
|
|
if $programname contains "teamd_" then {
|
|
|
|
/var/log/teamd.log
|
|
|
|
stop
|
|
|
|
}
|
2018-03-27 15:39:04 -05:00
|
|
|
|
2023-11-07 18:54:36 -06:00
|
|
|
## gnmi rules
|
|
|
|
if $msg startswith " gnmi-native" then {
|
|
|
|
/var/log/gnmi.log
|
|
|
|
stop
|
|
|
|
}
|
|
|
|
|
2018-03-27 15:39:04 -05:00
|
|
|
## telemetry rules
|
|
|
|
if $msg startswith " telemetry" or ($msg startswith " dialout" )then {
|
|
|
|
/var/log/telemetry.log
|
|
|
|
stop
|
2018-08-13 00:23:58 -05:00
|
|
|
}
|