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: 3.x, 4.0
Follow these steps to set up log collection from MongoDB.
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.
- Install the BindPlane Log Agent on the host system.
- Login to BindPlane and select the Logs tab.
- Select the Sources tab.
- In the top-right portion of the screen, click on the Add Source Configuration button
- Choose MongoDB
- Fill out the MongoDB log configuration options.
Updated 10 months ago