Splunk Cloud Platform

Scheduled searches and alerts not scheduled

python
Explorer

Hi,

 

How to query scheduled searches and alerts that is not scheduled?

Labels (1)
Tags (2)
0 Karma
1 Solution

kiran_panchavat
Champion

@python 

You can use this

is_scheduled=0 means Filters unscheduled searches.

| rest /services/saved/searches | where is_scheduled=0
To list all saved searches and alerts that are not scheduled
 
| rest /services/saved/searches
| search is_scheduled=0 alert_type=* disabled=0
| table title, qualifiedSearch, alert_type, is_scheduled, disabled
kiran_panchavat_1-1743777615296.png

 

| rest /services/saved/searches 
| where is_scheduled=0
| table title, description, search, eai:acl.owner, eai:acl.app

kiran_panchavat_0-1743777007342.png

Did this help? If yes, please consider giving kudos, marking it as the solution, or commenting for clarification — your feedback keeps the community going!

View solution in original post

livehybrid
SplunkTrust
SplunkTrust

Hi @python 

I see you have already accepted an answer to this, however I feel the answer isnt quite right, by using disabled=0 you are missing a bunch of searches which would otherwise be scheduled but have been disabled, so I feel you need to look for is_scheduled = 0 OR (disabled=1 AND is_scheduled = 1) as these are searches which would be scheduled if they werent disabled.

| rest /services/saved/searches
| search is_scheduled=0 OR (is_scheduled=1 AND disabled=1) alert_type=* 
| table disabled, is_scheduled, eai:acl.owner, eai:acl.app, title, qualifiedSearch, alert_type

livehybrid_0-1743803800276.png

🌟 Did this answer help you? If so, please consider:

  • Adding kudos to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

 

kiran_panchavat
Champion

@python 

You can use this

is_scheduled=0 means Filters unscheduled searches.

| rest /services/saved/searches | where is_scheduled=0
To list all saved searches and alerts that are not scheduled
 
| rest /services/saved/searches
| search is_scheduled=0 alert_type=* disabled=0
| table title, qualifiedSearch, alert_type, is_scheduled, disabled
kiran_panchavat_1-1743777615296.png

 

| rest /services/saved/searches 
| where is_scheduled=0
| table title, description, search, eai:acl.owner, eai:acl.app

kiran_panchavat_0-1743777007342.png

Did this help? If yes, please consider giving kudos, marking it as the solution, or commenting for clarification — your feedback keeps the community going!
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...