All Apps and Add-ons

Custom alert script in alert manager app

lexxx
Loves-to-Learn Lots

Good day!
A question of this nature: I have a Splunk cluster. The alert manager application is installed. There is a script for sending messages to the messenger. Is it possible through the application mechanisms to send an alert via a script when creating an incident? I searched through all the documentation of the application, and did not find how to do it...

Labels (3)
Tags (2)
0 Karma

impurush
Contributor

If I understand the question correctly, you need to trigger the alert through your scripts. If this is the case, then you can add the alert action as "Run a Script" and give your script name in the field name. Then you need place the script in any of the location  $SPLUNK_HOME/bin/scripts or $SPLUNK_HOME/etc/<app>/bin/scripts.

0 Karma

lexxx
Loves-to-Learn Lots

Not really. I need to make a script alert when an incident is generated in the alert manager application (https://splunkbase.splunk.com/app/2665/) . This is due to the fact that the application has a maintenance mode. This increases the convenience and informativeness of alerts.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...