cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
874
Views
0
Helpful
1
Replies

EEM Applet Problem With: event syslog pattern ".*" priority 2

GERARD PUOPLO
Level 1
Level 1

I went to create a EEM applet that would be invoked whenever any syslog message of priority 0-2 was invoked. I figured  the following event statement would work

       event syslog pattern ".*" priority 2

I never really used the priority optional argument before but thought I understood from the docs that messages at or numerically lower than the specified level are matched.

Well it doesn't seem to work as documented.  Seems to me that only messages at the specified level are beng matched and not messages numerically lower than the specified level.

Anyway I did what I wanted differently but wanted to post this in case this is a bug in the syslog ed.

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

Actually, it's a problem with the documentation.  The priority option only matches the specified severity.  What you could do is adjust pattern to do this:

event syslog pattern "*-[012]-"

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: