Suppress specific syslog messages

Unanswered Question
Apr 15th, 2010

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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Thu, 04/15/2010 - 16:30

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

BRIAN FLINTE Fri, 04/16/2010 - 08:02

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!

Joe Clarke Sun, 05/02/2010 - 14:16

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.

Actions

This Discussion

Related Content