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:
parent
547ec0a905
commit
1e4f09c860
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user