In the previous version of my logstash yaml file I used schedule => "* * * * *"
Now I'm trying to schedule it to tqice a day ( lets say 6 am and pm ), but it doesn`t work anymore. File content:
input {
jdbc{
clean_run => true
jdbc_driver_library => "../config/postgresql-42.2.23.jar"
jdbc_driver_class => "org.postgresql.Driver"
trigger => {
schedule =>
daily =>
at => [ "18:00","06:00"]
}
statement => 'SELECT tenant_id as id , full_name , email , phone FROM public."Tenants" '
use_column_value => true
tracking_column => "id"
}
}
output {
elasticsearch {
...
}
}