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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...