I configure logstash connection for oracle but not working.
Error: failed to load c:\ojdbc8.jar
Do you have any solution for this situation?
input {
jdbc {
jdbc_connection_string => "jdbc:oracle:thin:@192.168.10.10:1521/TESTDB"
jdbc_user => "SCOTT"
jdbc_password => "TIGER"
#jdbc_validate_connection => true
jdbc_driver_library => "C:\ojdbc8.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
statement => "SELECT * FROM SALES_DATA_SAMPLE"
}
}
output {
elasticsearch {
index => "salesdata"
document_type => "salesdata"
document_id => "%{uid}"
hosts => "localhost:9200"
}
}
I have a configured logstash pipeline with an ojdbc6.jar driver and logstash6.5.3 working fine with configurations very similar to yours.
Maybe you are having some compatibility issues. I found a similar issue [reported in github](https://github.com/logstash-plugins/logstash-input-jdbc/issues/331). – toomaas Apr 05 '19 at 10:47