Getting Data In

REST API fired alerts php sdk

tallak
New Member

hi

im using the splunk php sdk. And i cant find any functions in there to get the information i want from searches saved as alerts. I can find the search in /search/jobs/ and i can get the events.

the information i want is, severity of the search, when it was triggered.

Thanks In Advance!

Tags (2)
0 Karma

lite
New Member

is it supported in the python sdk ? I can't find a way to get it working

0 Karma

Leo
Splunk Employee
Splunk Employee

This is not supported by the php sdk.

If you're willing to extend it, you'll want to use this endpoint https://localhost:8089/services/alerts/fired_alerts/ as your source. It lists all the fired alerts and their properties. Make an authenticated http request by example of the existing sdk and parse the resulting xml to get the data.

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