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

Logging messages

aguante_boca
Level 1
Level 1

Dear Fellows,

I have to drop some messages from the "show logging" command.

Basically, I have to drop the events that contain the string "MAC_MOVE" or "NATIVE_VLAN_MISMATCH".

I tried with the following command: (I called test to my discriminator)

logging discriminator test mnemonics drops MAC_MOVE|NATIVE_VLAN_MISMATCH

logging buffered discriminator test 1024000

However, it  only drops messages which contain MAC_MOVE string (I believe that "|" is like a boolean OR).

At this moment, I have solved the issue executing the following commands:

logging discriminator test severity drops 4

logging buffered discriminator test 1024000

The point is that this commands drop all messeges from severity 4.

Is there any way to only drop those two events (which contains "MAC_MOVE" or "NATIVE_VLAN_MISMATCH").

Thanks in advanced.

2 Replies 2

ngoldwat
Level 4
Level 4

Hi,

Here is a link to Message Discriminator and how to create one.

logging discriminator discr-name [[facilitymnemonics | msg-body {drops | includes} string]  | severity {drops | includes} sev-numrate-limit msglimit]

Example:

Router(config)# logging discriminator pacfltr1  facility includes facl357

You could try something like: 'logging discriminator pacfltr1 facility includes MAC_MOVE msg-body includes <####> severity drops 4'  Although I have not tested it.

Thank you ngoldwat!

However, I need a logging discriminator that will drop any message  that contains MAC_MOVE or NATIVE_VLAN_MISMATCH (I need to drop both events).

Thanks for your help but I would like to know if logging discriminator could work with multiple statements?

Review Cisco Networking for a $25 gift card