Hey Folks,
I have a logstash configuration that has 10 jdbc inputs connecting to the same SQL Server but to diffrent databases. Scheduler is set to run every 2 minutes. All works correctly however the SQL Connections are never closed.
My logstash pipeline config example(partial)
input {
jdbc {
jdbc_driver_library => "/usr/share/logstash/jars/mssql-jdbc-12.6.1.jre8.jar"
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
jdbc_connection_string => "jdbc:sqlserver://******:1433;databaseName=******1;trustservercertificate=true"
jdbc_user => "${****}"
jdbc_password => "${****}"
tracking_column => "unix_ts_in_secs"
use_column_value => true
tracking_column_type => "numeric"
schedule => " */2 * * * *"
add_field => { "source_index" => "logstash-idx_index1" }
last_run_metadata_path => "/usr/share/logstash/data/index1"
statement => "${OBJECTINSTANCE_QUERY}"
}}
input {
jdbc {
jdbc_driver_library => "/usr/share/logstash/jars/mssql-jdbc-12.6.1.jre8.jar"
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
jdbc_connection_string => "jdbc:sqlserver://******:1433;databaseName=******2;trustservercertificate=true"
jdbc_user => "${****}"
jdbc_password => "${****}"
jdbc_paging_enabled => true
jdbc_pool_timeout => 60
tracking_column => "unix_ts_in_secs"
use_column_value => true
tracking_column_type => "numeric"
schedule => " */2 * * * *"
add_field => { "source_index" => "logstash-idx_index1" }
last_run_metadata_path => "/usr/share/logstash/data/index2"
statement => "${OBJECTINSTANCE_QUERY}"
}}
Any suggestions? I have tried various timeout props and sequel_opts without any success.