System Event Audit Messages in Self-Managed Deployments
Note
System Event Audit Messages are available in MongoDB Enterprise and MongoDB Atlas.
To learn more about this feature in MongoDB Atlas, see the Atlas documentation for Set Up Database Auditing and View and Download MongoDB Logs.
When the MongoDB auditing facility captures events, you can specify the schema that MongoDB uses for log message output:
The
mongo
schema writes logs in a format designed by MongoDB. This is the default log output schema.The
OCSF
schema writes logs in OCSF format. This option provides logs in a more widely-used standardized format compatible with log processors.
To set the schema used for log messages, use the
auditLog.schema
configuration file option.
For examples and details on the messages returned in each schema, see these pages: