Splunk Search

Saved searches Run time

izzie123
Path Finder

Hello Splunkers,

I had a question, I wanted to check the time on which my saved searches / scheduled reports and alerts are running. Is there a way we can list out the name of the searches and at what time are they running?

Also, how can we find out which saved searches are running at the same time?

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

You can use REST to get a list of scheduled searches and their scheduled times.

This query is derived from the Extended Search Reporting dashboard by dpaper at https://github.com/dpaper-splunk/public/blob/master/dashboards/extended_search_reporting.xml.  It sorts searches by their scheduled times so you can see which ones run at the same time.

| rest /servicesNS/-/-/saved/searches splunk_server=local search="is_scheduled=1" search="disabled=0" earliest_time=-1h@m latest_time=now timeout=0 
| table title cron_schedule scheduled_times 
| mvexpand scheduled_times 
| rename scheduled_times as _time
| sort + _time

 

---
If this reply helps you, Karma would be appreciated.

izzie123
Path Finder

This worked for me, thanks. I was able to list out the searches by tweaking this query a little bit.

We see that there are many searches running in at the same time, any ideas on how we can tune this?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Manually reschedule searches so fewer of them run at the same time.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Your Feedback. Our Roadmap. Visit the PX Feedback Booth at .conf26

You use Splunk every day, come and help shape what's next.  Save Your Seat: Product-Focused Sessions at ...

Agentic SOC Triage: Investigating Splunk ES Notables with MCP Server and a Local LLM

The Problem: Too Many Alerts, Too Little Context Security operations teams running Splunk Enterprise Security ...

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

Watch Now Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas     Do you ever feel ...