Getting Data In

How to set alert for three different timestamp in Splunk?

karthi2809
Builder

Have to set alert for three different timestamp?

ex: 4am to 7am , 9am to 2 pm,5pm to 10pm

Thanks
Karthi

0 Karma

p_gurav
Champion

If your alert is running every 30mins, then :

0/30 4-7,9-14,17-22 * * *

p_gurav
Champion

Do you mean this:

Morning 9 AM : Cycle will be previous day 4 PM to Today 9 AM
0 9 * * * and search for -17h to now()

Afternoon 1 Pm : Cycle will be 9 AM to 12.59 PM
0 13 * * * and search for -4h to now()

Evening 4 PM : Cycle will be 1 PM to 3.59 PM
0 16 * * *  and search for -3h to now()
0 Karma

karthi2809
Builder

i need in single alert

0 Karma

kmaron
Motivator

you should be able to use a cron schedule for that

0 4-7,9-14,17-22 * * *

from crontab.guru: “At minute 0 past every hour from 4 through 7, every hour from 9 through 14, and every hour from 17 through 22.”

karthi2809
Builder

what is earliest and latest time

0 Karma

kmaron
Motivator

You're going to need four separate alerts for that because each one has a different trigger time and a different earliest/latest setting.

0 Karma

karthi2809
Builder

Hi This is the time frame

Morning 9 AM , 1 PM and 4 PM.

Morning 9 AM : Cycle will be previous day 4 PM to Today 9 AM

Afternoon 1 Pm : Cycle will be 9 AM to 12.59 PM

Evening 4 PM : Cycle will be 1 PM to 3.59 PM

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...