Hello,
Since two weeks we have problem that from time to time our logstash pipeline which is connecting to oracle databse with jdbc_streaming filter is throwing, exception=>#<Sequel::DatabaseDisconnectError: Java::JavaSql::SQLRecoverableException: ORA-17008: Closed connection
jdbc_streaming {
jdbc_driver_library => "/usr/share/logstash/config/bin/ojdbc11.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
jdbc_user => "${ls_prod_user}"
jdbc_password => "${ls_prod_pass}"
jdbc_connection_string => "jdbc:oracle:thin:@//prodhost.back.dom:1533/prod.dom"
jdbc_validate_connection => true
jdbc_validation_timeout => 300
sequel_opts => {
max_connections => 4
pool_timeout => 180
}
parameters => {
"store" => "%{store}"
"seq" => "%{_seq}"
"converteddate" => "%{converted_date}"
"wkst" => "%{wkst}"
}
statement => "our query"
target => "data"
}
On network level connection is possible netcat and telnet are working fine. Our workaround is to restart container where logstash is running, after restart the connection is possible and logstash is processing data without problem.
Did somebody have similar problem and found some solution to automatically refresh/reestablish connection to db?