# Issue connecting logstash with Oracle db

**URL:** <https://discuss.elastic.co/t/issue-connecting-logstash-with-oracle-db/62869>\
**Category:** Logstash\
**Created:** [October 12, 2016, 8:51pm UTC](https://discuss.elastic.co/t/issue-connecting-logstash-with-oracle-db/62869 "2016-10-12T20:51:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daz9o1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daz9o1/32/12449_2.png) [@Daz9o1](https://discuss.elastic.co/u/Daz9o1)\
**Post date:** [October 12, 2016, 8:51pm UTC](https://discuss.elastic.co/t/issue-connecting-logstash-with-oracle-db/62869/1 "2016-10-12T20:51:52Z")

</div>

Hi,

I am a newbie to logstash/ELK and have a requirement of creating a working poc to monitor db trends, MQs and specific folders.

I created a basic config file below and tried running it with a vpn connection to client network:  
input {  
jdbc {  
jdbc\_validate\_connection =\> true  
jdbc\_connection\_string =\> "jdbc:oracle:thin:\\client\_ip:1521\client\_sid"  
jdbc\_user =\> "username"  
jdbc\_password =\> "password"  
jdbc\_driver\_library =\> "D:\Darpan\Integration\Enhancements\ELK\ojdbc7.jar"  
jdbc\_driver\_class =\> "Java::oracle.jdbc.driver.OracleDriver"  
statement =\> "SELECT sysdate from dual"  
}  
}  
output {  
stdout {  
#codec =\> rubydebug  
debug =\> true  
}  
}

Output error(excerpt from long error):  
Settings: Default pipeline workers: 8  
←[31mPipeline aborted due to error {:exception=\>"Sequel::DatabaseConnectionError  
", :backtrace=\>["oracle.jdbc.driver.T4CConnection.logon(oracle/jdbc/driver/T4CCo  
nnection.java:743)", "oracle.jdbc.driver.PhysicalConnection.connect(oracle/jdbc/  
driver/PhysicalConnection.java:666)", "oracle.jdbc.driver.T4CDriverExtension.get  
Connection(oracle/jdbc/driver/T4CDriverExtension.java:32)", "oracle.jdbc.driver.  
OracleDriver.connect(oracle/jdbc/driver/OracleDriver.java:566)", "java.lang.refl  
ect.Method.invoke(java/lang/reflect/Method.java:483)", "RUBY.connect(D:/Darpan/I  
ntegration/Enhancements/ELK/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/sequel-4

Cannot find much information from the error apart from that its a connection error however db is getting connected via sqldeveloper side by side.

Any suggestions will be much helpful.

Thanks,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:34am UTC](https://discuss.elastic.co/t/issue-connecting-logstash-with-oracle-db/62869/2 "2017-07-06T04:34:29Z")

</div>


