Unable to fetch real time data from database

This is my logstash config

input {
   jdbc {
    jdbc_driver_library => "/etc/ojdbc6.jar"
    jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
    jdbc_connection_string => "jdbc:oracle:thin:@1.0.2.10:8888/abcd"
    jdbc_user => "user"
    jdbc_password => "pass"
    #schedule => "* * * * *"
    statement => "SELECT * FROM axiom5load.axiom5_Mis_Rec_Log A where A.reqdumpdatetime>:sql_last_value"
    sql_log_level => "debug"
    use_column_value => true
    tracking_column => "reqdumpdatetime"
    tracking_column_type => "timestamp"
    last_run_metadata_path => "/etc/jdbc_last_ods-new.yml"

  }
}

When sql _last_value is ---2019-08-11 00:00:00.000000000 Z I am receiving data from DB . But when sql _last_value is specified as ---2020-04-25 00:00:00.000000000 Z I am not receiving data from DB from past 5 hrs .

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