# Logstash with sql server configuration

**URL:** <https://discuss.elastic.co/t/logstash-with-sql-server-configuration/102343>\
**Category:** Logstash\
**Created:** [September 30, 2017, 11:47am UTC](https://discuss.elastic.co/t/logstash-with-sql-server-configuration/102343 "2017-09-30T11:47:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharathpbk](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@bharathpbk](https://discuss.elastic.co/u/bharathpbk)\
**Post date:** [September 30, 2017, 11:47am UTC](https://discuss.elastic.co/t/logstash-with-sql-server-configuration/102343/1 "2017-09-30T11:47:58Z")

</div>

input {  
jdbc {  
jdbc\_driver\_library =\> "D:\Data\sqljdbc\_6.0\enu\jre8\sqljdbc42.jar"  
jdbc\_driver\_class =\> "com.microsoft.sqlserver.jdbc.SQLServerDriver"  
jdbc\_connection\_string =\> "jdbc:sqlserver://xxxxxxx:1433;databaseName=Bxxxr\_Post\_20170619;"  
jdbc\_user =\> "dcra"  
jdbc\_password =\> "dcravbl"  
statement =\> "SELECT \* FROM SubmissionQuestion"  
start\_position=\> "beginning"  
}  
}  
filter {  
}

output {  
elasticsearch {  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
action =\> "index"  
index =\> "xxxx\_Post\_20170619"  
document\_type =\> "SubmissionQuestion"  
manage\_template =\> true  
}  
stdout { codec =\> rubydebug }  
}

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 1, 2017, 9:29pm UTC](https://discuss.elastic.co/t/logstash-with-sql-server-configuration/102343/2 "2017-10-01T21:29:20Z")

</div>

Is there a question?

---

<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:** [October 29, 2017, 9:29pm UTC](https://discuss.elastic.co/t/logstash-with-sql-server-configuration/102343/3 "2017-10-29T21:29:21Z")

</div>

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