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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...