# Setting java.library.path or windows authentication

**URL:** <https://discuss.elastic.co/t/setting-java-library-path-or-windows-authentication/61635>\
**Category:** Logstash\
**Created:** [September 27, 2016, 4:53pm UTC](https://discuss.elastic.co/t/setting-java-library-path-or-windows-authentication/61635 "2016-09-27T16:53:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![net](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@net](https://discuss.elastic.co/u/net)\
**Post date:** [September 27, 2016, 4:53pm UTC](https://discuss.elastic.co/t/setting-java-library-path-or-windows-authentication/61635/1 "2016-09-27T16:53:49Z")

</div>

Hello,

I'm using jdbc and I have the following filled out:

input {  
jdbc {  
jdbc\_driver\_library =\> "the/path/to/sqljdbc42.jar"  
jdbc\_driver\_class =\> "com.microsoft.sqlserver.jdbc.SQLServerDriver"  
jdbc\_connection\_string =\> "jdbc:sqlserver://server:1433;databaseName=theName;integratedSecurity=true"  
jdbc\_user =\> "**"  
jdbc\_password =\> "**"  
statement =\> "SELECT \* FROM [DB].[SCHEMA].[TABLE]"  
}  
}  
output {  
stdout { }  
}

But when I run logstash it says "WARNING: failed to load the sqljdbc\_auth.dll cause : no sqljdbc\_auth in java.library.path"

How can I tell logstash where my sqljdbc\_auth.dll is? How do I set java.library.path?

I copied sqljdbc\_auth.dll to my java home dir lib folder but that didn't work. I also don't like to do it that way. What config setting in logstash an I do to make it know where sqljdbc\_auth.dll is?

---

<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:36am UTC](https://discuss.elastic.co/t/setting-java-library-path-or-windows-authentication/61635/2 "2017-07-06T04:36:37Z")

</div>


