I can't get Elastic to return the data received from my DB, no data is returned, below is the configuration file:
input {
jdbc {
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver" jdbc_connection_string => "jdbc:sqlserver://ELASTICSERVER\SQLEXPRESS:1433;databasename=Super_Loja_Elastic;integratedSecurity=false;" jdbc_driver_library => "" jdbc_paging_enabled => true tracking_column => "unix_ts_in_secs" use_column_value => true tracking_column_type => "numeric" schedule => "*/5 * * * * *" jdbc_user => "USER" jdbc_password => "PASSWORD" statement =>"SELECT *,DATEDIFF (SECOND, '1970-01-01', modification_time) AS unix_ts_in_secs FROM superloja WHERE DATEDIFF (SECOND, '1970-01-01',modification_time) > :sql_last_value AND :sql_last_value < DATEDIFF (SECOND, '1970-01-01',CURRENT_TIMESTAMP)"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"] index => "PRINCIPAL_Super_Loja"
}
}