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

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.

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