Move frr logs from syslog to /var/log/frr/*.log (#5988)

- Why I did it
Move frr logs from syslog from the directory /var/log/quagga/.log to /var/log/frr/log

- How I did it
Updated the rsyslog config files.

- How to verify it
Verified the logs come into the file zebra.log and bgpd.log in the DIR /var/log/frr/log
This commit is contained in:
judyjoseph 2020-12-10 08:44:34 -08:00 committed by Abhishek Dosi
parent 547ec0a905
commit 1e4f09c860
2 changed files with 6 additions and 9 deletions

View File

@ -28,8 +28,8 @@
/var/log/syslog
/var/log/teamd.log
/var/log/telemetry.log
/var/log/quagga/bgpd.log
/var/log/quagga/zebra.log
/var/log/frr/bgpd.log
/var/log/frr/zebra.log
/var/log/swss/sairedis.rec
/var/log/swss/swss.rec
{

View File

@ -1,15 +1,12 @@
## Quagga rules
if $programname == ["bgp#quagga",
"bgp#watchquagga",
"bgp#zebra"]
then {
/var/log/quagga/zebra.log
if re_match($programname, "bgp[0-9]*#(frr|zebra|staticd|watchfrr)") then {
/var/log/frr/zebra.log
stop
}
if $programname == "bgp#bgpd" then {
/var/log/quagga/bgpd.log
if re_match($programname, "bgp[0-9]*#bgpd") then {
/var/log/frr/bgpd.log
stop
}