# Error: mongodb.jdbc.MongoDriver not loaded. Are you sure you've included the correct jdbc driver in :jdbc\_driver\_library?

**URL:** <https://discuss.elastic.co/t/error-mongodb-jdbc-mongodriver-not-loaded-are-you-sure-youve-included-the-correct-jdbc-driver-in-jdbc-driver-library/126896>\
**Category:** Logstash\
**Created:** [April 5, 2018, 10:22am UTC](https://discuss.elastic.co/t/error-mongodb-jdbc-mongodriver-not-loaded-are-you-sure-youve-included-the-correct-jdbc-driver-in-jdbc-driver-library/126896 "2018-04-05T10:22:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham\_Goyal](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Shubham\_Goyal](https://discuss.elastic.co/u/Shubham_Goyal)\
**Post date:** [April 5, 2018, 10:22am UTC](https://discuss.elastic.co/t/error-mongodb-jdbc-mongodriver-not-loaded-are-you-sure-youve-included-the-correct-jdbc-driver-in-jdbc-driver-library/126896/1 "2018-04-05T10:22:27Z")

</div>

I am using following logstash config:

input{  
jdbc{  
jdbc\_driver\_library =\> "/home/UnityJDBC/mongodb\_unityjdbc\_full.jar"  
jdbc\_driver\_class =\> "mongodb.jdbc.MongoDriver"  
jdbc\_connection\_string =\> "jdbc:mongodb://localhost:27017/db"  
jdbc\_user =\> ''  
jdbc\_password =\> ''  
statement =\> "db.collection.find({})"  
}  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "mongodb-data"  
}   
}

I have used UnityJDBC driver.  
Please, let me know how to fix it. Thanks, in advance.

---

<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:** [May 3, 2018, 10:22am UTC](https://discuss.elastic.co/t/error-mongodb-jdbc-mongodriver-not-loaded-are-you-sure-youve-included-the-correct-jdbc-driver-in-jdbc-driver-library/126896/2 "2018-05-03T10:22:49Z")

</div>

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