Splunk Search

Limiting Results in Splunk REST API

sashaank
Observer

So I am trying to run a splunk search using Splunk REST API which finds a list of triggered alerts.

 

 

| rest /servicesNS/-/search/alerts/fired_alerts/Alert%20Name

 

 

 

So the problem is that if I try running this search for say 15 minutes, I want this API to return only the triggered alerts that occurred within the last 15 minutes, but it doesn't happen like that here. Instead this returns all the alerts that happened during the course of the day and is listed in triggered alerts. So is there a way by which I can get this to work?

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...