fe07450a26
### Why I did it Disable eventd at buildtime for slim images ##### Work item tracking - Microsoft ADO **(number only)**:26386286 #### How I did it Add flags for disabling eventd and only copy rsyslog conf files when eventd is included and not slim image #### How to verify it Manual testing
52 lines
1.1 KiB
Django/Jinja
52 lines
1.1 KiB
Django/Jinja
## Quagga rules
|
|
|
|
template(name="prog_msg" type="list") {
|
|
property(name="msg")
|
|
constant(value="\n")
|
|
}
|
|
|
|
{% if include_system_eventd == "y" %}
|
|
{% if build_reduce_image_size != "y" or sonic_asic_platform != "broadcom" %}
|
|
|
|
$ModLoad omprog
|
|
|
|
if re_match($programname, "bgp[0-9]*#(frr|zebra|staticd|watchfrr)") then {
|
|
/var/log/frr/zebra.log
|
|
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")
|
|
stop
|
|
}
|
|
|
|
if re_match($programname, "bgp[0-9]*#bgpd") then {
|
|
/var/log/frr/bgpd.log
|
|
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")
|
|
stop
|
|
}
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
## Teamd rules
|
|
|
|
if $programname contains "teamd_" then {
|
|
/var/log/teamd.log
|
|
stop
|
|
}
|
|
|
|
## gnmi rules
|
|
if $msg startswith " gnmi-native" then {
|
|
/var/log/gnmi.log
|
|
stop
|
|
}
|
|
|
|
## telemetry rules
|
|
if $msg startswith " telemetry" or ($msg startswith " dialout" )then {
|
|
/var/log/telemetry.log
|
|
stop
|
|
}
|