Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Cisco Support Community site will be in read only mode on Dec14, 2017 from 12:01am PST to 11:30am for standard maintenance. Sorry for the inconvenience.

New Member

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

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
Cisco Employee

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

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]-"

528
Views
0
Helpful
1
Replies
CreatePlease to create content