I get the following error when attempting to use a column value or when using the default timestamp:
Java::ComMicrosoftSqlserverJdbc::SQLServerException: Incorrect syntax near ':'.: SELECT * from table where id > :sql_last_start {:level=>:error}
Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComMicrosoftSqlserverJdbc::SQLServerException: Incorrect syntax near ':'.>, :level=>:warn}
config file:
input {
jdbc {
type => "cxusermetric"
jdbc_driver_library => "/app/logstash/sqljdbc_4.2/sqljdbc41.jar"
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
jdbc_connection_string => ""
jdbc_user => ""
jdbc_password => ""
statement => "SELECT * from table where id > :sql_last_start"
use_column_value => true
tracking_column => id
}
}
logstash 2.2.2
logstash-input-jdbc (3.0.0)