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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...