I have installed splunk dbx forwarder in 1 of my VM. Now when I am trying to create connection with MongoDB, I am getting this error (Our MongoDB uses certs and key for authentication and not username and password): No suitable driver found for jdbc:mongo://<host>:<port>/?authMechanism=MONGODB-X509&authSource=$external&tls=true&tlsCertificateKeyFile=<path to cert key pair>&tlsCAFile=<path to ca cert> Diagnosis:
No compatible drivers were found in the 'drivers' directory.
Possible resolution:
Copy the appropriate JDBC driver for the database you are connecting to in the 'drivers' directory. Splunk DBX Add-on for MongoDB : 1.2.0 List of Mongo drivers tried: mongodb-driver-core-4.10.2.jar mongojdbc4.8.3.jar splunk-mongodb-jdbc-1.2.0.jar mongodb-driver-sync-4.10.2.jar ojdbc8.jar UnityJDBC_Trial_Install.jar mongodb-jdbc-2.2.2-all.jar mongo-java-driver-3.12.14.jar mongodb-driver-core-5.2.1.jar mongodb-driver-sync-5.2.1.jar But getting the same version each time. Splunk_dbx forwarder version: Splunk 6.4.0 Mongo db version : 7.0.14 ---------------------------------------------------------- This is the db_connection_types.conf: [mongo] displayName = MongoDB jdbcDriverClass = com.mongodb.jdbc.MongoDriver ServiceClass = com.mongodb.jdbc.MongoDriveri jdbcUrlFormat = jdbc:mongo://<host:port>,<host:port>,<host:port>/?authMechanism=MONGODB-X509&authSource=$external&tls=true&tlsCAFile=<path to ca file>&tlsCertificateKeyFile=<path to cert and key file> useConnectionPool = false port = 10924 ssl = true sslMode = requireSSL sslCertificatePath = <path to file> sslCertificateKeyPath = <path to file> sslAllowInvalidHostnames = false authSource = $external tlsCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
... View more