Splunk Enterprise

How to write cron to run search every 15 minutes always between 7h and 19h?

jip31
Motivator

hello

I use the cron below in order to run the search At minute 10 past every hour from 7 through 19.

 

10 7-19 * * *

 

 Instead doing this, I would like to run the search every 15 minutes always between 7h and 19h 

could you help please?

 

Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

This is not possible in a single cron if you want to include 19:00 but not 19:15, 19:30 and 19:45

To exclude 19:00 (and run that as a separate job), use this

*/15 7-18 * * *

 

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

This is not possible in a single cron if you want to include 19:00 but not 19:15, 19:30 and 19:45

To exclude 19:00 (and run that as a separate job), use this

*/15 7-18 * * *

 

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...