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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...