Generic MongoDB

Last updated on Feb 02, 2024

After you select Generic MongoDB as the Source for creating the Pipeline, provide the connection settings and data replication details in the Configure your MongoDB Source page.

You can connect to the MongoDB database in one of the following ways:

  • By specifying the individual connection fields such as database host, database port, username, and password.

  • By entering the connection URI to connect to your MongoDB replica set or sharded cluster.

    Connection URIs are of two types:

    • DNS Seedlist: This type of connection URI has the prefix mongodb+srv://.

      For example, mongodb+srv://<Jerome>:<Hevo123>@demo.westeros.net/.

      The +srv part indicates that the hostname corresponds to a DNS SRV record. The hostnames and port values for your MongoDB database are fetched from the DNS SRV record.

    • Standard Connection String: This type of connection URI has the prefix mongodb://. This contains a comma-separated list of host:port combinations.

      For example, mongodb://Jerome:Hevo123@demo1.westeros.net:21275,demo2.westeros.net:21275/.

      In the above example, Jerome is the database user, Hevo123 is the password for the database user, demo1.westeros.net is the IP address or hostname of the database, and 21275 is the database port.


Limitations

  • Hevo does not support configuring a standalone instance of MongoDB without a replica.

See Also


Revision History

Refer to the following table for the list of key updates made to this page:

Date Release Description of Change
Feb-02-2024 NA Updated section, Configure Generic MongoDB Connection Settings to add information about sharded clusters.
Mar-16-2023 NA Added a warning in the Advance Settings in section, Configure Generic MongoDB Connection Settings about dropping databases from the Source after the Pipeline is created.
Mar-09-2023 2.09 Updated section, Configure Generic MongoDB Connection Settings to mention about SEE MORE in the Select an Ingestion Mode section.
Dec-19-2022 2.04 Updated section, Configure Generic MongoDB Connection Settings to add information that you must specify all fields to create a Pipeline.
Dec-07-2022 2.03 Updated section, Configure Generic MongoDB Connection Settings to mention about the connectivity checker.
Jul-12-2022 1.92 Updated section, Configure Generic MongoDB Connection Settings to include information about the drop-down to select databases in the Load All Databases option.
Apr-21-2022 1.86 Updated section, Configure Generic MongoDB Connection Settings.
Jul-12-2021 1.67 Added the field Include New Tables in the Pipeline under Source configuration settings.
Jun-28-2021 1.66 - Updated the page overview section.
- Updated the section Set up Permissions to Read Generic MongoDB Databases to include latest commands.
- Updated the section Configure Generic MongoDB Connection Settings to include the option to connect to the MongoDB database using connection string.
- Added section, Limitations.

Tell us what went wrong