Alerting

Can you help me with alert time scheduling in Splunk?

Upas02
Path Finder

I have to set up an alert to check if some particular services are stopped in the server. However, there are some planned downtimes everyday between 12-1 pm and 6-10pm. Currently, the alert is creating lots of spam as services will be stopped during those time ranges.

How can I schedule the timings of my alert to not run during these two time windows ?

0 Karma

whrg
Motivator

Hello @Upas02,

You can configure your alert to run on a cron schedule. This way, you can leave out specific hours. For example, if want to run your alert hourly with a search window of the last 60 minutes, then I suggest this cron schedule:

0 0,2,3,4,5,6,11,12,13,14,15,16,17,18,19,20,21,22,23 * * *

This alert will not run at 1pm, 7pm, 8pm, 9pm and 10pm.

crontab.guru helps you in creating cron schedules.

Another option you have is modifying the search like this:

index=_* NOT date_hour=0 NOT (date_hour>=18 date_hour<=22)
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...