I have been asked to further enhance the Lookup Table currently in place which allows for RealTime lookups of Cisco Events. The request would be to add a couple columns, one for paging and one for emails. If an 'event' is matched to a 'device' then send a 'page' or 'email' to the appropriate group (see below).
event,action,device,email,page
%PHY-4-EXCESSIVE_ERRORS,TRUE,msp-usr-rtr1,emailperson@blah.com,pager@blah.com
Is this possible, and if yes, how? My current props & transforms.conf are setup to extract 'error' from the incoming syslog and look like this:
props.conf:
[syslog_info]
EXTRACT-cisco_event = (?<error>\%.*-\b([0-4])\-.*?):\s
LOOKUP-foo = cisco_event_error error OUTPUTNEW
transforms.conf:
[cisco_event_error]
filename = syslog_alerter.csv
Any ideas or thoughts on if this has been done or can be done would be appreciated. This would work in conjunction with:
MasterOogway
The problem with this approach is that for a given saved search, there might be 5 of one type of event that goes to one email recipient, 7 or another type of event that goes to another, and so on.
Splunk's sendemail script is not capable of sending different portions of a saved search result sets to multiple recipients - it would have be invoked at least once per recipient.
There three two alternatives that I can think of:
Set up discreet saved searches for each potential recipient. Each search would look like this:
email=emailperson@blah.com | sendemail to=emailperson@blah.com <the rest of the opt/args for sendemail>...
You might be able to get creative with the 'map' command to generalize the second case. But in any event, it's clearly not a trivial thing to do.