Splunk Search

How to schedule a search one day a week

cneberg
Explorer

How do I schedule splunk cron search to run Sunday's at 11:00 pm?

I thought it would be this

00 23 ? * 0

But splunk doesn't appear to support the ? character, which wikipedia says means don't specify the day of the month. I could use an asterisks but I'm guessing that means every day of the month.

0 Karma

yannK
Splunk Employee
Splunk Employee

try 0 23 * * 0

the 5th part is for the day of the week (0=sunday)

keep the third with a * it will be controlled by the condition on the day of week.

* * * * * command to be executed


| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...