elk stack - Logstash - cannot properly assign timestamp tracking column value (JDBC plugin) -
i have problem assigning last 'sql_last_value'. wanted assign last timestamp stored in database.
here config:
input { jdbc { jdbc_driver_library => "/usr/share/logstash/libs/sqljdbc42.jar" jdbc_driver_class => "com.microsoft.sqlserver.jdbc.sqlserverdriver" jdbc_connection_string => " jdbc_user => "" jdbc_password => "**" statement => "select * log timestamp > :sql_last_value" tracking_column => "timestamp" tracking_column_type => "timestamp" clean_run => true schedule => "/10 * * * * *" } } output { elasticsearch { hosts => "elasticsearch:9200" } stdout { codec => rubydebug } }
it took data second query not uses timestamp. uses datetime ?
Comments
Post a Comment