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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...