Hi,
Earlier I was using logstash jdbc plugin to input mongodb data which was working fine. Now we have made changes to our mongodb and enabled SSL , replicaset with self signed certificate.
I am not sure how can I give my CA information in JDBC input or connection string.
Earlier configuration which was working without ssl is
input {
jdbc {
jdbc_driver_library =>""
jdbc_driver_class => "com.dbschema.MongoJdbcDriver"
jdbc_connection_string => "jdbc:mongodb://username:password@IP:PORT/db_name?authSource=admin"
jdbc_user => ""
jdbc_validate_connection => true
schedule => "* * * * * * UTC"
statement => "db.getCollection('Dbname').find({})"
}
}
my new connection string looks like this
mongodb://username:password@IP1:PORT1,IP2:PORT2,IP3:PORT3/db_name?authSource=admin&replicaSet=mongodb-replica&ssl=true&sslAllowInvalidCertificates=true
help is really appreciated.
Thanks,
chandra kanth