Reporting

Suppression of custom splunk alert during specific time on daily basis

prateeksawhney
Explorer

Hi All,

I have created a custom alert in splunk and I want to put a suppression window in that alert on daily basis from 12am UTC -7am UTC. How can this be achieved? from cron expression or adding something to the original query?

Please help!!!

Labels (1)
0 Karma

thambisetty
SplunkTrust
SplunkTrust

you need to schedule same search multiple times with different cron jobs

*/15 8-23 * * *

The above schedules job except below schedules

00:00,00:15........................,07:00,[07:15,07:30,07:45]

you need only three schedules from above the ones enclosed in []

another cron to schedule job to run  at  07:15,07:30,07:45. 

so you will need total 2 different cron schedules  as below

*/15 8-23 * * * 

15,30,45 7 * * *

 

————————————
If this helps, give a like below.

thambisetty
SplunkTrust
SplunkTrust

what is the frequency of schedule and should 12 AM UTC - 7 AM UTC be excluded from schedule?

————————————
If this helps, give a like below.

prateeksawhney
Explorer

yes correct, frequency is 15 mins, monday to friday.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...