04-15-2010 11:02 AM - edited 03-03-2019 05:55 AM
Does anyone know of a way to suppress a specific syslog messages from being generated? I would like to filter these from all syslogs (buffer, terminal, syslog server). I would like all other messages to generate as normal. For instance, drop anything containing a specific word or phrase.
I'm wondering if there is a method using EEM.
04-15-2010 04:30 PM
In the future, you should post these kind of questions to the Network Infrastructure > Network Management forum. I am much more likely to spot them there.
Yes, you can do what you want, but not using EEM. You want to use the Embedded Syslog Manager or syslog message discriminators. If you provide the exact version(s) of code, and a specific example of what you want to do, I can provide an example of how to use both solutions.
--
Please support CSC Helps Haiti
https://supportforums.cisco.com/docs/DOC-8895
https://supportforums.cisco.com
04-16-2010 08:02 AM
So I tried a few variations of message discriminators, but I can't seem to get any of them to work correctly.I am trying to filter out all "CNG tone sent" messages. Below is my configuration.
logging discriminator suppress mnemonics drops CNG
logging buffered discriminator suppress 16384
I also tried...
logging discriminator suppress mnemonics drops CNG*
logging discriminator suppress mnemonics drops "CNG tone sent"
logging discriminator suppress mnemonics drops tone
Also, how would I filter out mutliple messages? For instance, anything with "CNG" and also anything with "SEC-6-IPACCESSLOGP"?
Thanks for your help!
05-02-2010 02:16 PM
Sorry, I completely missed your reply. Exactly what are the syslog messages you are seeing that you would like to filer out? Also, what is the IOS version? It sounds like we may have to use ESM to do exactly what you want.
04-20-2010 07:41 AM
Which system / device with IOS version?
I confronted with following link which may help you to some extent...
http://www.cisco.com/en/US/partner/docs/ios/12_4t/12_4t11/htnmsylg.html
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