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 GitHub
parent 31ce20ac38
commit 6d9ecbcfd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View File

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

View File

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