# Configure logstash input from DB values

**URL:** <https://discuss.elastic.co/t/configure-logstash-input-from-db-values/223873>\
**Category:** Logstash\
**Created:** [March 17, 2020, 8:12am UTC](https://discuss.elastic.co/t/configure-logstash-input-from-db-values/223873 "2020-03-17T08:12:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rameshkr1994](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rameshkr1994/32/59029_2.png) [@rameshkr1994](https://discuss.elastic.co/u/rameshkr1994)\
**Post date:** [March 18, 2020, 1:18pm UTC](https://discuss.elastic.co/t/configure-logstash-input-from-db-values/223873/2 "2020-03-18T13:18:12Z")

</div>

hello @Ryan2 welcome 😊

I understood your requirement -

please follow step/action require by you to perform the same-

Step 01-

```auto
You need database driver as per below logstash config.

```

lostashfile.conf

```auto
input {
  jdbc {
    jdbc_driver_library => "C:\Users\xxxx\Downloads\Elasticsearch\sqljdbc_4.2\enu\jre8\sqljdbc42.jar"
    #jdbc_driver_class => "com.microsoft.jdbc.sqlserver.SQLServerDriver"
	jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
    jdbc_connection_string => "jdbc:sqlserver:/XXXXXX;integratedSecurity=false;"
	
    
    jdbc_user => "user"
	jdbc_password => "pass"
	jdbc_validate_connection => true

    statement => "SELECT * FROM table1"
  }
}

output {
  elasticsearch {
    hosts => ["localhost:9200"]
    index => "dbdataindex"
  }
}

```

`after data available as index in elastic search then add use kibana as default config if using localhost.`

> for more reply

Thanks  
HadoopHelp

---

_[View the full topic](https://discuss.elastic.co/t/configure-logstash-input-from-db-values/223873)._
