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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...