MongoDB
Connect RootCause.ai to your MongoDB database to import collections with optional query filters.
Prerequisites
Before connecting, ensure you have:
MongoDB connection string (including authentication if required)
Network access from RootCause.ai to your MongoDB instance
Read access to the databases and collections you want to import
Setting Up the Connection
Navigate to Data → Datasets in your workspace
Click New Connection and select MongoDB
Enter your connection string:
Connection String Formats:
Standard:
mongodb://username:password@host:27017Atlas (SRV):
mongodb+srv://username:[email protected]Replica Set:
mongodb://host1:27017,host2:27017/?replicaSet=mySet
Click Test Connection to verify your credentials
Click Save to create the connector
Importing Data
Once your connector is saved:
Click Import Data on the connector
Select a Database from the dropdown (RootCause.ai will list available databases)
Select a Collection from the dropdown
Optionally, add a Query Filter to import only matching documents
Query Filter Example:
The query filter uses standard MongoDB query syntax.
What Happens When You Import
RootCause.ai connects to your MongoDB instance
Documents from the selected collection are retrieved (with optional filter)
Nested documents are flattened into a tabular format
Schema is automatically detected from the document structure
Data is stored securely in your workspace's data lake
The imported dataset becomes available for use in Data Views and Ontology mapping.
Live Data Sync
You can configure automatic syncing to keep your dataset current:
Manual – Only sync when you click "Sync Now"
Hourly – Refresh every hour
Daily – Refresh once per day
Weekly – Refresh once per week
When a sync runs, the entire dataset is replaced with fresh data from the source.
Security Recommendations
Use a dedicated read-only user for RootCause.ai
Include authentication in your connection string
Use TLS/SSL connections (append
?tls=trueif needed)For Atlas, use IP allowlisting to restrict access
Troubleshooting
Connection timeout
Verify the connection string is correct
Check that your MongoDB instance is accessible from RootCause.ai
For Atlas, ensure the IP address is in your allowlist
Authentication failed
Verify username and password in the connection string
Ensure the user exists in the
admindatabase or the target databaseCheck authentication mechanism compatibility
Database or collection not showing
Verify the user has
listDatabasesandlistCollectionspermissionsCheck that the database/collection exists and contains documents
Last updated

