sonic-buildimage/files/image_config/rsyslog/rsyslog.d/00-sonic.conf
lguohan f3ca7c422f
[rsyslog]: use # to separate container name and program name in syslog message (#1918)
Previously use / to separate container name and program name.

However, in rsyslogd:

Precisely, the programname is terminated by either (whichever occurs first):

end of tag
nonprintable character
‘:’
‘[‘
‘/’
The above definition has been taken from the FreeBSD syslogd sources.

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-12 22:23:58 -07:00

28 lines
476 B
Plaintext

## Quagga rules
if $programname == ["bgp#quagga",
"bgp#watchquagga",
"bgp#zebra"]
then {
/var/log/quagga/zebra.log
stop
}
if $programname == "bgp#bgpd" then {
/var/log/quagga/bgpd.log
stop
}
## Teamd rules
if $programname contains "teamd_" then {
/var/log/teamd.log
stop
}
## telemetry rules
if $msg startswith " telemetry" or ($msg startswith " dialout" )then {
/var/log/telemetry.log
stop
}