How to crawl MongoDB

Once you have configured the MongoDB permissions, you can establish a connection between Atlan and MongoDB.

To crawl metadata from MongoDB, review the order of operations and then complete the following steps.

Select the source

To select MongoDB as your source:

  1. In the top right of any screen in Atlan, navigate to +New and click New Workflow.
  2. From the Marketplace page, click MongoDB Assets.
  3. In the right panel, click Setup Workflow.

Provide your credentials

To enter your MongoDB credentials:

  1. For Extraction method, Direct is the default selection.
  2. For SQL interface host name, enter the host name of the SQL (or JDBC) endpoint you copied from your MongoDB database.
  3. For Authentication, Basic is the default method.
  4. For Username, enter the username you created in your MongoDB database.
  5. For Password, enter the password you created for the username.
  6. For MongoDB native host, enter the host name of your MongoDB database you copied.
  7. For Default database, enter the name of the default database you copied from your MongoDB database.
  8. For Authentication database, enter the name of the authentication database you copied from your MongoDB database. admin is the default selection β€” learn more about authentication databases in MongoDB.
  9. For SSL, keep Yes to connect via a Secure Sockets Layer (SSL) channel or click No.
  10. Click the Test Authentication button to confirm connectivity to MongoDB.
  11. Once authentication is successful, navigate to the bottom of the screen and click Next.

Configure the connection

To complete the MongoDB connection configuration:

  1. Provide a Connection Name that represents your source environment. For example, you might use values like production,development,gold, or analytics.
  2. (Optional) To change the users who are able to manage this connection, change the users or groups listed under Connection Admins.
    🚨 Careful! If you do not specify any user or group, no one will be able to manage the connection β€” not even admins.
  3. Navigate to the bottom of the screen and click Next to proceed.

Configure the crawler

Before running the MongoDB crawler, you can further configure it.

On the Metadata Filters page, you can override the defaults for any of these options:

  • To select the assets you want to include in crawling, click Include Metadata. (This will default to all assets, if none are specified.)
  • To select the assets you want to exclude from crawling, click Exclude Metadata. (This will default to no assets, if none specified.)
  • To have the crawler ignore collections based on a naming convention, specify a regular expression in the Exclude regex for collections field.
πŸ’ͺ Did you know? If an asset appears in both the include and exclude filters, the exclude filter takes precedence.

Run the crawler

To run the MongoDB crawler, after completing the steps above:

  • To run the crawler once, immediately, at the bottom of the screen, click the Run button.
  • To schedule the crawler to run hourly, daily, weekly, or monthly, at the bottom of the screen, click the Schedule & Run button.

Once the crawler has completed running, you will see the assets on Atlan's asset page! πŸŽ‰

Related articles

Was this article helpful?
0 out of 0 found this helpful