If I created 3 mongodb users: user1, user2, user3, as a mongodb admin with root privilege. Is there any way that I can check the login (as well as usage) history of these users?
MongoDB – How to Show User Login History
mongodb
Related Question
- MongoDB Root Access – Why Run mongod as Root?
- Mongodb – what is the password to user mongodb when mongodb is installed in ubuntu
- MongoDB LDAP – How to Bypass LDAP for MongoDB Users
- Mongodb – How to create a global MongoDB Admin account to see all Dbs
- MongoDB Security – Resolving Localhost Exception
- MongoDB Atlas – How to Add userAdmin User
- MongoDB – Create User with Read and Write Access Only
- Mongodb – How to query the mongoDB admin database
Best Answer
The MongoDB log files will record information information showing when a database user authenticates; the log messages will look like the following:
A full usage history of each user would require auditing as JJussi mentioned.