MongoDB
Logs Collected
The logs collected for MongoDB, when utilized by the Google Stackdriver's Log-based metrics, can provide the ability to monitor all users attempting to access the database. Divulging who made the attempt, when the attempt was made, and whether the attempt was successful.


MongoDB Logs Example
Supported Versions
MongoDB: 3.x, 4.0
Log Collection Setup
Follow these steps to set up log collection from MongoDB.
Pre-requisites
Locate the local MongoDB log file location.
MongoDB Log Location
The MongoDB log location is set by your mongod.conf file.
For more information, click here.
Configure a MongoDB Source
- Install the BindPlane Log Agent on the host system.
- Login to BindPlane and select the Logs tab.


Logs Tab
- Select the Sources tab.


Sources Tab
- In the top-right portion of the screen, click on the Add Source Configuration button


Add Source Configuration Button
- Choose MongoDB
- Fill out the MongoDB log configuration options.


MongoDB Log Configuration Form
Updated over 2 years ago