# Error: mongodb.jdbc.MongoDriver not loaded

**URL:** https://discuss.elastic.co/t/error-mongodb-jdbc-mongodriver-not-loaded/133423
**Category:** Logstash
**Created:** [May 27, 2018, 12:08pm UTC](https://discuss.elastic.co/t/error-mongodb-jdbc-mongodriver-not-loaded/133423 "2018-05-27T12:08:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kartsh](https://avatars.discourse-cdn.com/v4/letter/k/85f322/32.png) [@kartsh](https://discuss.elastic.co/u/kartsh)
#### Post date: [May 27, 2018, 12:08pm UTC](https://discuss.elastic.co/t/error-mongodb-jdbc-mongodriver-not-loaded/133423/1 "2018-05-27T12:08:37Z")

</div>

Am trying to load mogodb database to elastic search using logstash. I have written below logstash config file and executing it. While running the config file am getting the below error :

```
  Error: mongodb.jdbc.MongoDriver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library?

```

Exception: LogStash::ConfigurationError

Am using mongo-java-driver-3.1.0.jar driver. Please find my logstash config code below.

```
 input {
     jdbc {

              jdbc_driver_library => "D:\1SearchEngine\data\mongo-java-driver-3.1.0.jar"
              jdbc_driver_class => "mongodb.jdbc.MongoDriver"
              jdbc_connection_string => "jdbc:mongodb://localhost:27017/my_db"
              jdbc_user => ""
              statement => "*"
          }
   }

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

---

<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: [June 24, 2018, 12:08pm UTC](https://discuss.elastic.co/t/error-mongodb-jdbc-mongodriver-not-loaded/133423/2 "2018-06-24T12:08:40Z")

</div>

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