# Jdbc input plugin

**URL:** <https://discuss.elastic.co/t/jdbc-input-plugin/247757>\
**Category:** Logstash\
**Created:** [September 7, 2020, 10:21am UTC](https://discuss.elastic.co/t/jdbc-input-plugin/247757 "2020-09-07T10:21:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milan\_Suthar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/milan_suthar/32/74944_2.png) [@Milan\_Suthar](https://discuss.elastic.co/u/Milan_Suthar)\
**Post date:** [September 7, 2020, 10:21am UTC](https://discuss.elastic.co/t/jdbc-input-plugin/247757/1 "2020-09-07T10:21:57Z")

</div>

hello,  
i want mongodb as input to ES index as output  
i have used logstash jdbc input plugin  
but its not working it shows "no-suitable-driver-found-for-jdbcmongo " i have tried many examples but didt work for me , i've also tried comented code , whats diff between both drivers can anyone tell me ?, thanks  
here's .conf file

```auto
    input {
jdbc {
jdbc_driver_library => "/usr/share/logstash/mongojdbc2.3.jar"
#jdbc_driver_library => "mongo-java-driver-3.12.6.jar"
jdbc_driver_class => "com.dbschema.MongoJdbcDriver"
#jdbc_driver_class => "com.mongodb.MongoClient"
#jdbc_connection_string => "jdbc:mongo://127.0.0.1:27017/dbname"
jdbc_connection_string => "jdbc:mongodb://127.0.0.1:27017/dbname"
jdbc_user => "username"
jdbc_password => "password"
#schedule => "* * * * * *"
statement => "db.ntc.callpath_utilizationreport_data.find({},{'_id': false});"
#tags => "mongodb"

}
}
output {
elasticsearch {
hosts => ["http://127.0.0.1:9200"]
index => "callpathdata2"
}
}

```

---

<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 5, 2020, 10:22am UTC](https://discuss.elastic.co/t/jdbc-input-plugin/247757/2 "2020-10-05T10:22:02Z")

</div>

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