# Logstash not showing any output while connecting to Oracle DB

**URL:** https://discuss.elastic.co/t/logstash-not-showing-any-output-while-connecting-to-oracle-db/156309
**Category:** Logstash
**Created:** [November 12, 2018, 3:14pm UTC](https://discuss.elastic.co/t/logstash-not-showing-any-output-while-connecting-to-oracle-db/156309 "2018-11-12T15:14:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Vishal088](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@Vishal088](https://discuss.elastic.co/u/Vishal088)
#### Post date: [November 12, 2018, 3:14pm UTC](https://discuss.elastic.co/t/logstash-not-showing-any-output-while-connecting-to-oracle-db/156309/1 "2018-11-12T15:14:41Z")

</div>

I'm starting off with Logstash, working through the tutorials. I ma facing issue while trying to extract data as standard output from oracle.

I have created below sample config file:-  
input {  
jdbc {  
jdbc\_validate\_connection =\> true  
jdbc\_driver\_library =\> "C:/logstash/lib/ojdbc7.jar"  
jdbc\_driver\_class =\> "Java::oracle.jdbc.driver.OracleDriver"  
jdbc\_connection\_string =\> "jdbc:oracle:thin:@hostanme:port/DB"  
jdbc\_user =\> "userName"  
jdbc\_password =\> "PASSWD"  
#statement =\> "SELECT 1 from DUAL"  
statement\_filepath =\> "C:/logstash/bin/query.sql"  
jdbc\_fetch\_size =\> 256  
}  
}  
output {  
stdout { codec =\> rubydebug }  
#stdout { codec =\> json\_lines }  
}

Query Present on File:-  
SELECT  
TABLE1.ID,  
CASE WHEN TABLE1.SOURCEID='X' then 'X'  
WHEN TABLE1.SOURCEID= 'Y' then 'Y'  
WHEN TABLE1.SOURCEID='Z' then 'Z'  
WHEN TABLE1.SOURCEID='Z' then 'Z'  
END AS RecordTYPE,  
TABLE1.PRCOESS\_ID,  
CASE WHEN ERRTB.STATUS IS NULL THEN 'SUCESS' ELSE ERRTB.STATUS END AS FINALSTATUS,  
ERRTB.ERROR\_ID ,  
ERRTB.ERROR\_DESCRIPTION AS ERROR\_DESC,  
ERRTB.ERROR\_COLUMN AS ERROR\_FIELD\_NAME,  
ERRTB.PRCOESS\_ID AS PRCOESS\_ID,  
ERRTB.BUSINESS\_VALUE\_1 AS INVOICE\_NUMBER  
from TABLE1, (Select STATUS,ERROR\_ID,ERROR\_DESCRIPTION,ERROR\_COLUMN,PRCOESS\_ID,BUSINESS\_VALUE\_1,TECHNICAL\_VALUE\_1 from TABLE2 Where PRCOESS\_ID in ('28420446','27693708')) ERRTB  
Where TABLE1.ID =ERRTB.TECHNICAL\_VALUE\_1(+)  
AND TABLE1.PRCOESS\_ID in ('28420446','27693708') and rownum \<600

Log stash doesn't prints the query output. Please guide me.

Thanks  
Vishal

---

<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: [December 10, 2018, 3:14pm UTC](https://discuss.elastic.co/t/logstash-not-showing-any-output-while-connecting-to-oracle-db/156309/2 "2018-12-10T15:14:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
