Alerting

run two scripts when triggering alert

0range
Communicator

Is it possible to run two scripts at the same time?
for example if I type "a.sh, b.sh" in the corresponding line of savedsearch settings window will Splunk execute both?

Tags (2)
1 Solution

MuS
Legend

Hi 0range,

No, this will not work - just tested that.

But you can create a wrapper script in $SPLUNK_HOME/bin/scripts/ which will call those two scripts and assign the wrapper script to be run when the alert hits - as well, just tested that 😉

cheers, MuS

View solution in original post

MuS
Legend

Hi 0range,

No, this will not work - just tested that.

But you can create a wrapper script in $SPLUNK_HOME/bin/scripts/ which will call those two scripts and assign the wrapper script to be run when the alert hits - as well, just tested that 😉

cheers, MuS

0range
Communicator

thanks MuS... but we have VMware app... 😞

0 Karma

MuS
Legend

check out this app http://apps.splunk.com/app/1730/ maybe this can help you achieving your goals

0 Karma

0range
Communicator

It seems an interesting way to use an external alerting system... but I think it's Splunk's job 😞

0 Karma

MuS
Legend

Or have Splunk sent out the alert to some other Alerting System which will take care of the all your alerting combinations/conditions ....

0 Karma

gfuente
Motivator

What about passing parameters to the wrapping script specifiying the subscripts to be called?

0range
Communicator

No other ways?

0 Karma

0range
Communicator

Sure we can do like this, but the number of combinations scares me..)

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...