Splunk® DB Connect

JDBC Driver for MongoDB

This documentation does not apply to the most recent version of Splunk® DB Connect. For documentation on the most recent version, go to the latest release.

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.

Last modified on 02 October, 2024
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


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters