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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...