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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...