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

Hello,
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 :

input{
jdbc{
//database info...
schedule => "*/1 * * * *"
}
}

Regards !

What about this:

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

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

Regards !

Hello,
unfortunately this is not working do you have any suggestions ?

regards !

Sorry i made a mistake, try this:

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

Hello,
this is not working also :cry:

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

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.

regards.

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