# JDBC input logstash (JTDS support)

**URL:** <https://discuss.elastic.co/t/jdbc-input-logstash-jtds-support/26367>\
**Category:** Logstash\
**Created:** [July 27, 2015, 8:42pm UTC](https://discuss.elastic.co/t/jdbc-input-logstash-jtds-support/26367 "2015-07-27T20:42:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alvaro\_Gareppe](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@Alvaro\_Gareppe](https://discuss.elastic.co/u/Alvaro_Gareppe)\
**Post date:** [July 27, 2015, 8:42pm UTC](https://discuss.elastic.co/t/jdbc-input-logstash-jtds-support/26367/1 "2015-07-27T20:42:19Z")

</div>

Any experience using jdbc input with jtds connecting to a SQL server DB ?

I'm having an issue on start that says "are you sure you've included the correct jdbc driver in: jdbc\_driver\_library? "

jar is in the configured path and Driver name ("net.sourceforge.jtds.jdbc.Driver") is ok (of course jar lib includes the specifierd .class file)

Thank you

---

<div class="post-metadata">

**Author:** ![talevy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talevy/32/44896_2.png) [@talevy](https://discuss.elastic.co/u/talevy)\
**Post date:** [July 28, 2015, 5:51pm UTC](https://discuss.elastic.co/t/jdbc-input-logstash-jtds-support/26367/2 "2015-07-28T17:51:08Z")

</div>

mind sharing your config?

should work so long as the correct driver is being used and exists within the jar.

---

<div class="post-metadata">

**Author:** ![Alvaro\_Gareppe](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@Alvaro\_Gareppe](https://discuss.elastic.co/u/Alvaro_Gareppe)\
**Post date:** [July 28, 2015, 6:28pm UTC](https://discuss.elastic.co/t/jdbc-input-logstash-jtds-support/26367/3 "2015-07-28T18:28:23Z")

</div>

Config, jtds-1.2.5-spnego.jar includes the class net.sourceforge.jtds.jdbc.Driver.class

jdbc {  
jdbc\_driver\_library =\> "C:\DeleteMe\jtds-1.2.5-spnego.jar"  
jdbc\_driver\_class =\> "net.sourceforge.jtds.jdbc.Driver"  
jdbc\_connection\_string =\> "jdbc:jtds:sqlserver://SERVER:1433;DatabaseName=db;domain=MYDOMAIN"  
jdbc\_user =\> "USER"  
jdbc\_password =\> "\*\*\*\*\*_"  
schedule =\> "_ \* \* \* \*"  
parameters =\> { "initial\_date" =\> "2015-06-29 00:00:00.000" }  
statement =\> "select EventTime, Value, CounterType from table (nolock) where EventTime \> :initial\_date and EventTime \> :sql\_last\_start"  
type =\> "stats\_DB"  
}

---

<div class="post-metadata">

**Author:** ![Alvaro\_Gareppe](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@Alvaro\_Gareppe](https://discuss.elastic.co/u/Alvaro_Gareppe)\
**Post date:** [July 31, 2015, 3:54pm UTC](https://discuss.elastic.co/t/jdbc-input-logstash-jtds-support/26367/4 "2015-07-31T15:54:49Z")

</div>

Anyone has an Idea what the issue can be ?

Using microsoft jdbc driver for SQL server works but I cant use it because a need the domain property in the connection string that jtds supports.

Any ideas ?

---

<div class="post-metadata">

**Author:** ![Mithel](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Mithel](https://discuss.elastic.co/u/Mithel)\
**Post date:** [July 26, 2016, 1:10pm UTC](https://discuss.elastic.co/t/jdbc-input-logstash-jtds-support/26367/5 "2016-07-26T13:10:59Z")

</div>

I'd love to know if anyone has solved this. I need to connect to a Microsoft SQL Server database and have been unable to connect with either the JTDS driver nor the Microsoft driver.

---

<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:46am UTC](https://discuss.elastic.co/t/jdbc-input-logstash-jtds-support/26367/6 "2017-07-06T04:46:28Z")

</div>


