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
Observer

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!

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

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

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...