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!

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, ...