hello,
i want mongodb as input to ES index as output
i have used logstash jdbc input plugin
but its not working it shows "no-suitable-driver-found-for-jdbcmongo " i have tried many examples but didt work for me , i've also tried comented code , whats diff between both drivers can anyone tell me ?, thanks
here's .conf file
input {
jdbc {
jdbc_driver_library => "/usr/share/logstash/mongojdbc2.3.jar"
#jdbc_driver_library => "mongo-java-driver-3.12.6.jar"
jdbc_driver_class => "com.dbschema.MongoJdbcDriver"
#jdbc_driver_class => "com.mongodb.MongoClient"
#jdbc_connection_string => "jdbc:mongo://127.0.0.1:27017/dbname"
jdbc_connection_string => "jdbc:mongodb://127.0.0.1:27017/dbname"
jdbc_user => "username"
jdbc_password => "password"
#schedule => "* * * * * *"
statement => "db.ntc.callpath_utilizationreport_data.find({},{'_id': false});"
#tags => "mongodb"
}
}
output {
elasticsearch {
hosts => ["http://127.0.0.1:9200"]
index => "callpathdata2"
}
}