337a9dbcf4
### Why I did it Currently there is only rsyslog plugin support for /var/log/syslog, meaning we do not detect events that occur in frr logs such as BGP Hold Timer Expiry that appears in frr/bgpd.log. ##### Work item tracking - Microsoft ADO **(number only)**: 13366345 #### How I did it Add omprog action to frr/bgpd.log and frr/zebra.log. Add appropriate regex for both events. #### How to verify it sonic-mgmt test case
9 lines
176 B
JSON
9 lines
176 B
JSON
[
|
|
{
|
|
"tag": "bgp-state",
|
|
"regex": "Peer .default\\|([0-9a-f:.]*[0-9a-f]*). admin state is set to .(up|down).",
|
|
"params": [ "ip", "status" ]
|
|
}
|
|
]
|
|
|