# Start logstash with jdbc

**URL:** <https://discuss.elastic.co/t/start-logstash-with-jdbc/36820>\
**Category:** Logstash\
**Created:** [December 10, 2015, 1:30am UTC](https://discuss.elastic.co/t/start-logstash-with-jdbc/36820 "2015-12-10T01:30:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![supermario](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@supermario](https://discuss.elastic.co/u/supermario)\
**Post date:** [December 10, 2015, 1:30am UTC](https://discuss.elastic.co/t/start-logstash-with-jdbc/36820/1 "2015-12-10T01:30:37Z")

</div>

I want to use logstash-input-jdbc in my logstash application on the windows. My jdk version is 1.8 , logstash version is 2.1 and use sqljdbc4.jar(version 4.2 or version 6.0).Logstash config :

input {  
tcp  
{  
codec =\> "json"  
type =\> "iis"  
port =\> 5545  
}  
jdbc {  
jdbc\_driver\_library =\> "C:\ELK\logstash\bin\sqljdbc42.jar"  
jdbc\_driver\_class =\> "com.microsoft.sqlserver.jdbc.SQLServerDriver"  
jdbc\_connection\_string =\> "jdbc:sqlserver://localhost:1433/databasename=TuHUProduct"  
jdbc\_user =\> "sa"  
jdbc\_password=\> "123456"  
schedule =\> "\* \* \* \* \*"  
statement =\> "select \* product"  
}  
}  
output {  
stdout{}  
elasticsearch {  
hosts =\> "127.0.0.1:9200"  
}  
}

When i start logstash with this config appear a exception:  
This driver application don't support Java Runtime Environment (JRE) 1.8.Please use support for JDBC 4.0 sqljdbc4.jar .  
My sqljdbc.jar is the lastest version (version 4.2 or version 6.0), i don't konw why this exception.  
Please help, 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, 5:19am UTC](https://discuss.elastic.co/t/start-logstash-with-jdbc/36820/2 "2017-07-06T05:19:13Z")

</div>


