Types of auditable events
Here are some examples of events that can be audited in MongoDB:
- Authentication and authorization events:
authenticate
: Events related to user authenticationcreateUser
,dropUser
,createRole
,dropRole
,grantRoles
,revokeRoles
, andupdateUser
: Events associated with creating, modifying, and managing users and roleslogout
: User logout events
- Administrative operation events (DDL schema/replica set and sharding):
enableSharding
,addShard
,removeShard
, andshardCollection
: Events related to sharding operationsreplSetInitiate
,replSetReconfig
,replSetElect
,replSetFreeze
,replSetStepDown
, andreplSetSyncFrom
: Events associated with the configuration and operation of replica setscompact
andrepairDatabase
: Maintenance operations on databases and collections
- Startup and shutdown events:
startup
: When themongod
process startsshutdown
: When themongod
process exits
These are just a few of the many events that can be audited in MongoDB. By configuring...