Alerting

Configure Alert with specific parameters and pass that data as Trigger Action

larryleeroberts
Path Finder

I am attempting to find the best way to start sending alerts from Splunk to Netcool OMNIbus and I am finding it a bit challenging.
One issue I am having is figuring out how to configure Splunk to pass specific information when an Alert Action fires.

For example....
One of the parameters we require are teams to pass when sending an event to OMNIbus is call "OnCallGroup".
Example: OnCallGroup=ProductionServices

I need a way when setting up an Alert Action in Splunk to say that one of the parameters it should pass is OnCallGroup. I see no way to add such extra information to the configuration of the Alert or Trigger Actions.

Any ideas?

Thanks!

0 Karma
1 Solution

hgehrts_splunk
Splunk Employee
Splunk Employee

Hi

You can send some of the information into an alert action but not the results from the query. See here:
http://docs.splunk.com/Documentation/Splunk/6.5.0/Alert/Configuringscriptedalerts

The best option I think is via custom search commands. I am working on one that would hand over results from Splunk search into posteifmsg. I think that's what you are looking for (Should be working ok with nco_postmsg as well) ...
search would be like
index=xyz OnCallGroup=*|rename source AS AlertKey|table OnCallGroup AlertKey _time|posteifmsg

Thing is: I am somewhat new to python so it'll take some time I think. I will post it to splunkbase once finished.

View solution in original post

hgehrts_splunk
Splunk Employee
Splunk Employee

Hi

You can send some of the information into an alert action but not the results from the query. See here:
http://docs.splunk.com/Documentation/Splunk/6.5.0/Alert/Configuringscriptedalerts

The best option I think is via custom search commands. I am working on one that would hand over results from Splunk search into posteifmsg. I think that's what you are looking for (Should be working ok with nco_postmsg as well) ...
search would be like
index=xyz OnCallGroup=*|rename source AS AlertKey|table OnCallGroup AlertKey _time|posteifmsg

Thing is: I am somewhat new to python so it'll take some time I think. I will post it to splunkbase once finished.

larryleeroberts
Path Finder

That is EXACTLY what I would be after 🙂
I see, so you are finding the OnCallGroup information from a lookup table in Splunk. Correct?

Good info! Yes, please keep me posted on your progress as I would be very interested in this once you have it.

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...