Link to home
Start Free TrialLog in
Avatar of cpatte7372
cpatte7372Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Cisco EEM Syslog Pattern Match

Hello Experts,
 
Can someone please let me know if its possible to have a EEM script activated when particular word appears in a syslog message?
 
For example, the following is a syslog message:
 
Sep 19 09:11:33.966: %HA_EM-2-LOG: utilisationHighInterfaceUtilization.tcl: 992&You are experiencing abnormally high traffic utilization |ifu|/15
 
Would it be possible if have a EEM script activated when the word "high traffic utilization" from the above syslog message appears?
 
I have tried with the following but it won't work.
 

event manager applet toptalkers
event syslog pattern "high traffic utilization"
action 1.0 cli command "enable"
action 1.5 cli command "show flow monitor FlowMonitor1 cache aggregate ipv4 protocol"
action 4.0 mail server "10.44.xxx.xxx" to "carlton@ska.co.uk" from "carlton@ska.co.uk" subject "toptalkers." body "TopTalker Script $_cli_result"
 
 
Cheers
Avatar of cpatte7372
cpatte7372
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Experts,

I tried the following but it didn't work:

event manager applet toptalkers
 event syslog pattern ".*high traffic utilization.*"
Any help with this please??
Hello Community,

I figured out why it doesn't work.

Its because the event isn't, technically speaking, a syslog event. Therefore, can someone please show me how to make the script work with the event as stated above:

Sep 19 09:11:33.966: %HA_EM-2-LOG: utilisationHighInterfaceUtilization.tcl: 992&You are experiencing abnormally high traffic utilization |ifu|/15

Cheers

Carlton
ASKER CERTIFIED SOLUTION
Avatar of surbabu140977
surbabu140977
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Cheers mate.