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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...