I´m using Logstash in Raspiberry Pi with OS Raspbian Jesse. It´s works with API, but it don't works with a Firebird.
The error is :
[2020-02-07T14:43:11,666][ERROR][logstash.inputs.jdbc ] Java::JavaSql::SQLSyntaxErrorException: Dynamic SQL Error; SQL error code = -104; Token unknown - line 1, column 93; LIMIT [SQLState:42000, ISC error code:335544634]: SELECT count(*) AS "COUNT" FROM (SELECT * FROM SP_EFICIENCIA_MENSAL_FABRICACAO('')) AS "T1" LIMIT 1
My file .conf is:
input{
jdbc{
jdbc_driver_library => "/usr/share/logstash/bin/jaybird-full-3.0.8.jar"
jdbc_driver_class => "org.firebirdsql.jdbc.FBDriver"
jdbc_connection_string => "jdbc:firebirdsql:IP_Adress:C:\X\XXX\my_data_base.FDB"
jdbc_user => "my-user"
jdbc_password => "my-passord"
schedule => "* * * * *"
statement => "SELECT * FROM SP_EFICIENCIA_MENSAL_FABRICACAO('')"
jdbc_page_size => 0
jdbc_paging_enabled => false
clean_run => "true"
last_run_metadata_path => "/usr/share/logstash/bin/lat_run.txt"
}
}
output{
elasticsearch{
hosts => "my-cloud:9200"
index => "my-index"
document_id => "%{id}"
}
}