cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
5019
Views
11
Helpful
2
Replies

How do you suppress unwanted logging messages?

jimmyc_2
Level 1
Level 1

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,

2 Replies 2

jimmyc_2
Level 1
Level 1

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.......

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