Alerting

Alert Action "Run a script" depreciated - Looking for similar option

kamal_jagga
Contributor

Objective: Send the search result url to a central location whenever an alert is triggered.

Current Sol: Trigger alert action script whenever no of events>0

Current Shell Script :
read sessionKey
echo "'$SPLUNK_ARG_0' '$4' '$6' '$sessionKey'" >> \
"/opt/splunk/output.txt"

I know Splunk has given "Convert a script alert action to a custom alert action" option.

But its not that clear and I don't want to modify each search query to add the sendresults option.

Link: http://docs.splunk.com/Documentation/Splunk/7.0.2/AdvancedDev/CustomAlertConvertScripted

kindly advise.

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, ...