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!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...