cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
2042
Views
0
Helpful
3
Replies

Filter syslog messages

mgruyters
Level 1
Level 1

Hi,

I want to filter multiple syslog messages. With the discriminator command i seem to filter only one message not more. Anybody know how to do this the best way? 

With kind regards,

Martijn

3 Replies 3

mgruyters
Level 1
Level 1

I found that ESM (Embedded Syslog Manager) can solve this. You can upload a tcl script who changes the messages you want to block to blank. Anybody got a example script to go on? Found a couple on the internet but when i filter i don't get any messages anymore.

This is my tcl script. When i upload it to the switch turn it on, i don't get any logging anymore.....why?

#logging filter flash:syslog-filter.tcl
#logging host 172.25.75.52 filtered


if { $::mnemonic == UPDOWN } {
return ""
} else {
return "$::orig_msg"
}

Dan Frey
Cisco Employee
Cisco Employee

Discriminator can filter more than one message.  See this link: https://supportforums.cisco.com/discussion/12349441/filtering-logging-messages-syslog-server-catalyst-switch-using-logging

What is your requirement for filtering messages?