Alerting

cron expression for scheduled report

Learner
Path Finder

hi everyone, i want to scheduled a report at 00 hrs, from 1st to 15th day of previous month and this should run on 1st day of current month

Labels (1)
0 Karma

alonsocaio
Contributor

Hi @Learner ,

If I understood your question right, you could use this cron expression to schedule your search to run on the first day of the month at 00:00.

 

0 0 1 * *

 

You can check a more detailed explanation and test new cron expressions on this site: https://crontab.guru/#0_0_1_*_*

But if the report needs to search a period between the 1st day and the 15th day of previous month, your should use the earliest and latest time in your search query (Or select it in your time picker):

 

...YOUR SEARCH... earliest=-1mon@mon latest=-1mon@mon+1296000

 

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...