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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...