Alerting

Alert scheduled for below mentioned time.

m7787580
Explorer

HI Team,

Is it possible i can get the report scheduled for below mentioned time.

Could we get a report at 9:00am and then another at 2:00pm. The first would cover data from 2:00pm to 9:00am and the second from 9:00 to 2:00pm.
1.--> 2:00pm to 9:00am --19hrs
2.-->9:00 to 2:00pm --5 hrs

1 possible option is to create two alerts and schedule it but i dont what would be cron job.

Could you please help.

Thanks in advance

Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The cron part is easy. Schedule the alert using 01 9,14 * * * to run the alert at 9:01 am and 2:01 pm.
The harder part is telling the alert to search the previous 19 hours on the first run of the day and the previous 5 hours on the second run of the day. For that, I think you'll need two alerts.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The cron part is easy. Schedule the alert using 01 9,14 * * * to run the alert at 9:01 am and 2:01 pm.
The harder part is telling the alert to search the previous 19 hours on the first run of the day and the previous 5 hours on the second run of the day. For that, I think you'll need two alerts.

---
If this reply helps you, Karma would be appreciated.
0 Karma

m7787580
Explorer

Thanks, I have created two alerts

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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