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.