Splunk Search

How to get Splunk triggered alerts results url?

spl_unker
Explorer

Hi Splunkers ,

 

Im trying to build a dashboard to capture all the triggered alerts with some custom actions to be applied for each alert

Im trying to make a table with  Alert Name , Alert triggered Time and Alerts results URL(which we actually get in an email when we enable  email notification)

I would like to know how to get url for each triggered alert results and pass that into a dashbaord....so that users can view that results by clicking that link and take actions based on that

 

 

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

you can try something like this. 

index=_audit TERM(action=alert_fired)
| eval alert_url = "http://localhost:8000/en-GB/app/" . ss_app . "/%40go?sid=" . sid
| table _time alert_url ss_app ss_name alert_actions 

Replace http://localhost:8000/en_GB/ with your SH proto + name + port + lang.

r. Ismo 

0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...