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!

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