Reporting

How can I use REST api to get scheduled searches?

nsleden
New Member

I am able to get results with this:

 

curl -k -u ${SPLUNK_USER}:${SPLUNK_PASSWORD} -X GET https://{$SPLUNK_URL}/servicesNS/-/-/saved/searches?search="\(eai:acl.owner='username'\)"\&count=0

 

but I would also like to return only those that are scheduled.  I tried to add:

 

?search="\(eai:acl.owner='username'\) AND \(is_scheduled=1\)"\&count=0

 

but it returns 0. I also tried with only this:

 

?search="\(is_scheduled=1\)"\&count=0

 

and it returns 0. I am not sure how to make the is_scheduled work.

Thanks!

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

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...