Alerting

Cron expression for splunk DB connect

dkgs
Communicator

Hi,

I want the query in db connect to execute everyday between 8PM and 11 PM for every 2 minutes. Please help with the cron expression to be provided in the db connect

Labels (3)
0 Karma
1 Solution

willemjongeneel
Communicator

Hello,

I think the following cron will do: 

*/2 8-10 * * *

Kind regards,

Willem

View solution in original post

willemjongeneel
Communicator

Hello,

I think the following cron will do: 

*/2 8-10 * * *

Kind regards,

Willem

dkgs
Communicator

thank you. 

But the time is between 20 to 23 .

0 Karma

isoutamo
SplunkTrust
SplunkTrust

As it was PM then replace 8-11 to 20-23.

r. Ismo

willemjongeneel
Communicator

Ah yes thats right, but shouldn't it be 20 - 22 then? As it gets every second minute past hour 22. Or am I mistaken? 

Kind regards,

Willem

0 Karma

isoutamo
SplunkTrust
SplunkTrust

that’s true. 

Get Updates on the Splunk Community!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...