# Unable to fetch real time data from database

**URL:** <https://discuss.elastic.co/t/unable-to-fetch-real-time-data-from-database/229956>\
**Category:** Elasticsearch\
**Created:** [April 27, 2020, 12:55pm UTC](https://discuss.elastic.co/t/unable-to-fetch-real-time-data-from-database/229956 "2020-04-27T12:55:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishnu\_mk](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@Vishnu\_mk](https://discuss.elastic.co/u/Vishnu_mk)\
**Post date:** [April 27, 2020, 12:55pm UTC](https://discuss.elastic.co/t/unable-to-fetch-real-time-data-from-database/229956/1 "2020-04-27T12:55:55Z")

</div>

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 .

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 25, 2020, 12:55pm UTC](https://discuss.elastic.co/t/unable-to-fetch-real-time-data-from-database/229956/2 "2020-05-25T12:55:58Z")

</div>

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