sonic-buildimage/dockers/docker-dhcp-relay/dhcp_relay_regex.json
Zain Budhwani d89dde3b6d
Fix regex and process name (#16647)
### Why I did it

### How I did it

Fix regex such that dhcp bind failure event is detected as well as process name since dhcp relay processes that need to be detected are dhcprelay6 and dhcrelay.

#### How to verify it

Manual testing and nightly test event
2023-09-26 16:15:27 -07:00

13 lines
448 B
JSON

[
{
"tag": "dhcp-relay-discard",
"regex": "Discarding packet received on ([a-zA-Z0-9-_]*) interface that has no IPv4 address assigned.",
"params": [ "ifname" ]
},
{
"tag": "dhcp-relay-bind-failure",
"regex": ".*Failed to bind socket to (link local|global) ipv6 address on interface ([a-zA-Z0-9]*).*",
"params": [ "type:ret=(arg==\"link local\")and\"local\"or\"global\"", "vlan" ]
}
]