Splunk Search

Search/alert that is ran after work hour

fisk12
Path Finder

Hello
I want to run a search/alert that is run in a certain timespan (for example between 18:00 and 08:00) and then sends a alert.

Tags (2)
0 Karma

jbsplunk
Splunk Employee
Splunk Employee

You can find instructions for setting up search and alerting here:

http://www.splunk.com/base/Documentation/latest/user/SchedulingSavedSearches#Start_by_defining_and_s...

You'd use a custom schedule with a cron job like syntax. I believe the following should work, it wouldn't hurt to double check:

  • 0-8,18-21 * * *
0 Karma

fisk12
Path Finder

Hmm, i mean that i want to have a search that is ran every hour (for example, can be every half an hour aswell) between 18 and 08:00, and sending an alert if its true.

0 Karma

MarioM
Motivator

sorry this is not clear for me what timespan you want? is it the search result timespan? or the schedule when the search/alert is run?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...