cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2198
Views
0
Helpful
2
Replies

Please help: logging discriminator and regex issue.

Roger F
Level 1
Level 1

Can you please tell me what I'm doing wrong here?

I'm trying to prevent lines that contain NOVALIDKEY --or-- INVALIDKEY from appearing in the logging buffer & terminal

I've tried:

logging discriminator OSPFERR msg-body drops NOVALIDKEY|INVALIDKEY
logging buffered discriminator OSPFERR 100000
logging monitor discriminator OSPFERR

And when I do a sh logging, see:


Syslog logging: enabled (0 messages dropped, 26 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)

Active Message Discriminator:
OSPFERR msg-body drops _NOVALIDKEY_|_INVALIDKEY_

Feb 27 11:49:10: %OSPF-4-INVALIDKEY: Key ID 0 received on interface [redacted]
Feb 27 11:49:22: %OSPF-4-NOVALIDKEY: No valid authentication send key is [redacted]

We know what is causing the error, we just want to stop seeing it for now.

any thoughts on what I'm doing wrong are most welcome, thanks!

1 Accepted Solution

Accepted Solutions

Philip D'Ath
VIP Alumni
VIP Alumni

That is not the message body.  I think you need something more like:

logging discriminator OSPFERR mnemonics drops NOVALIDKEY|INVALIDKEY

View solution in original post

2 Replies 2

Philip D'Ath
VIP Alumni
VIP Alumni

That is not the message body.  I think you need something more like:

logging discriminator OSPFERR mnemonics drops NOVALIDKEY|INVALIDKEY

Thanks, that works a treat!

Review Cisco Networking for a $25 gift card