Alerting

How to use a Splunk API to retrieve results of a triggered alert?

worldexplorer81
Path Finder

Hi, 

I have set up an alert and under Actions, I have added 'Add to triggered Alerts'. 

I would like to be able to use an API to retrieve the actual results of a specific triggered alert (Example, get the results of the alert triggered at 17.43. 

worldexplorer81_0-1663714924749.png

I am using alerts/fired_alerts/<alert_name> but it just gives me the list of trigger history. 

Is it possible to be able to retrieve the actual results? Preferably in JSON

 

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The fired_alerts response will include a search ID (sid), which you then can use in the  search/jobs/{search_id}/results API call to get the search results.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

The fired_alerts response will include a search ID (sid), which you then can use in the  search/jobs/{search_id}/results API call to get the search results.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...