I am trying to write a baseline check that removes all logging statements except for my two active syslog servers. Over the years some devices still send syslog to old non-existent severs.
- logging [#!x.x.x.x|!y.y.y.y#]
x.x.x.x and y.y.y.y being the only servers I want to keep.
The check on the line above works for x.x.x.x but not for the y.y.y.y. It seems like the items on the right side of the pipe is not being evaluated.