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!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...