Logstash Schedule every minute from 8 AM to 12 PM and from 2 PM to 6PM

(Ali) #1

im working with logstash that get data from oracle database every minute and it works fine, but for some performance issue i have to configure logstash to execute every minute from 8 AM to 12 PM and from 2 PM to 6PM
do you have any idea how to acheive this ?
this is my config in schedule property :

//database info...
schedule => "*/1 * * * *"

Regards !

(Lewis Barclay) #2

What about this:

schedule => "* * 08-12,14-18 * * *"

(Ali) #3

thanks for your response i will try it and back for you.

Regards !

(Ali) #4

unfortunately this is not working do you have any suggestions ?

regards !

(Lewis Barclay) #5

Sorry i made a mistake, try this:

schedule => "* 08-12,14-18 * * *"

(Ali) #6

this is not working also :cry:

(Lewis Barclay) #7

Do you get any errors in the logs? If so please post

(Ali) #8

Hi Lewis Barclay,
no i don't get any error just logstash gets data from my datatbase normally without respect the intervale that i set 08-12,14-18 , for example it keeps getting data from database between 12 and 14 also before 08.


(system) closed #9

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.