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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...