Error: mongodb.jdbc.MongoDriver not loaded

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"
     }
   }

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