Alerting

Help needed regarding cron expression

prateeksawhney
Explorer

Hi All,

I need your help in creating cron expression for alert schedule. I need to schedule a alert from Monday 02:00 - Saturday 00:30.

If any other information is required please let me know.

Any help will be highly appreciated. 

 

Thanks in advance.

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

How often during those times? Or only at those times?

This is not possible in a single cron expression; depending on the actual times you want to trigger the search, you may need to have up to 3 expressions e.g. to cover from Monday 02:00 to midnight; all day Tuesday through Friday; and, up to 00:30 on Saturday.

Alternatively, you can exclude those times in your search i.e. return zero results outside the desired timeframe.

Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...