01-07-2013 06:47 AM
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.
01-07-2013 10:49 AM
Hi,
Here is a link to Message Discriminator and how to create one.
logging discriminator discr-name [[facility | mnemonics | msg-body {drops | includes} string] | severity {drops | includes} sev-num | rate-limit msglimit]
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.
01-07-2013 11:29 AM
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?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide