Configure a JDBC connection to MongoDB Atlas using Splunk JDBC Driver for MongoDB
Authentication
It supports a basic authentication method using user
and password
attributes passed as a property or as a part of the connection string as query parameters.
It requires to provide the authSource
value as the database name associated with the user's credentials.
JDBC connection string
To be able to connect to your MongoDB Atlas using this driver you will need to enable the SQL Atlas Interface, go to Data Services > Database
click Connect and select Atlas SQL, then in Select your driver choose JDBC Driver, copy the value from the URL field.
More about Atlas SQL Interface
Using this driver the JDBC connection string should start with the prefix jdbc:mongodb://
followed by the IP address / FQDN, port and database name, such as jdbc:mongodb://<host>:<port>/<database>?authSource=<user-credentials-database>
.
SSL connection
To use SSL connection specify ssl=true
as part of the connection string as a query parameter.
Driver class
It supports auto loading according to JDBC 4.0, but in case there is a need for register it manually the driver class is com.splunk.dbx.mongodb.AtlasDriver
.
Install the JDBC Driver for MongoDB | Configure a JDBC connection to MongoDB Standalone using Splunk JDBC Driver for MongoDB |
This documentation applies to the following versions of Splunk® DB Connect: 3.17.0, 3.17.1, 3.17.2, 3.18.0
Feedback submitted, thanks!