MongoDB
MongoDB Atlas is a fully-managed cloud database service for MongoDB. Atlas logs provide information on database operations, such as query execution, connections, index usage, and performance metrics. They also capture events related to user activity, database configuration changes, and security incidents. These logs are essential for monitoring database health, optimizing query performance, troubleshooting issues, and ensuring data security and compliance.
Ingest Method
This source is a polling source and will download new logs from the app API approximately every 60 seconds.
Setup
Log in to MongoDB Atlas
- Open your web browser and navigate to the MongoDB Atlas login page (opens in a new tab).
- Enter your credentials and click "Sign In".
Access the API Keys Page
- Once logged in, click on "Access Manager" in the left sidebar.
- In the Access Manager section, click on the "API Keys" tab.
- Click the "Create API Key" button to start the creation process.
Configure the API Key
- Enter a descriptive name for your API key (e.g., "Log Retrieval API Key").
- Select the appropriate access rights:
- For log access, you typically need the "Project Read Only" role.
- If you need more permissions, select them accordingly.
- Click "Next".
Add IP Access List
- In the "Add IP Access List" section, you can restrict API access to specific IP addresses.
- To add your current IP:
- Click "Add Current IP Address".
- Alternatively, you can manually enter IP addresses or ranges.
- Click "Next".
Generate the API Key
- Review your settings on the final page.
- Click "Create API Key".
Save Your API Credentials
After generating the API key, you'll be presented with two important pieces of information:
- Public Key
- Private Key