Alerting

Scheduled Alert using crontab shows next run time inconsistent with timezone on the Search Head

justinhaynes
Loves-to-Learn

I scheduled a search to run at 0 2,8,14,20 * * * 

The timezone of the search head is UTC.  Therefore I expect the next run tiem to be 2am UTC, yet Splunk says the next run time would be 6am UTC. 

How could this be? And where is this configured?

I suspect there is a setting somewhere which is making the cron expressions be interpreted in US Eastern Time. Since we are observing Daylight Savings Time, Eastern Daylight Time would be UTC-4.

The documentation (Use cron expressions for alert scheduling - Splunk Documentation) says "The Splunk cron analyzer defaults to the timezone where the search head is configured. This can be verified or changed by going to Settings > Searches, reports, and alerts > Scheduled time."

I find no "Scheduled Time" under Settings > Search, reports and alerts.

I did post this to the feedback on that documentation page in case it is actually inaccurate.

Where can I check and verify?  

Thanks!

Labels (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@justinhaynes - As per my understanding.

  • If the scheduled alert is configured with a specific user, it uses the user's configured timezone.
  • If the scheduled alert shows "nobody" as the username then it uses Search Head's timezone as default as described by the doc.

Please kindly check if you have set the alert then your configured timezone is what you are observing (EDT).

 

I hope this helps!!!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...