How do you suppress unwanted logging messages?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2011 09:49 AM
I continually recieve the message "ENVMON-3-FAN_FAILED" in both my buffer and syslog.
How do I filter it out?
I have version c2800nm 12.4.15.
Regards,
- Labels:
-
Network Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2011 12:05 PM
Looks like the answer is:
logging discriminator nolog msg-body drops Fan.3 (the period is a wildcard)
logging buffered discriminator nolog
logging host 10.1.1.1 discriminator nolog
A show log states that this discriminator "nolog" is active.
That solved my issue, hope I didn't create another one or miss something.......

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2011 02:01 PM
No, logging discriminator is a good way to filter a specific message. If you need more robust filtering, you can look at the Embedded Syslog Manager,
which uses Tcl scripts to filter, modify, count, etc. messages based on rich pattern matching and other data collection mechanisms.
http://www.cisco.com/en/US/docs/ios/12_3t/12_3t2/feature/guide/gt_esm.html
