SV-265953r1028645_rule
V-265953
SRG-APP-000515-DB-000318
MD7X-00-012400
CAT II
10
To specify auditLog, or a centralized system log (which is recommended), configure these in the mongod.conf configuration file:
auditLog:
destination: syslog
Refer to documentation for additional configuration: https://www.mongodb.com/docs/v7.0/core/auditing/
Allocate sufficient space to the storage volume hosting the file identified in the MongoDB configuration "auditLog.path" to support audit file peak demand.
MongoDB relies on the underlying operating system to allocate storage capacity for audit logs and as such, does not enforce arbitrary file size limits on audit logs.
System administrators should confirm that the recommended centralized system logging has been enabled (e.g., syslog on Linux systems) in the /etc/mongod.conf configuration file.
For example, on a Linux-based system using syslog which is mirrored to an off-server centralized location, confirm that the MongdoDB configuration file (default location: /etc/mongod.conf) contains a properly configured auditLog such as follows:
auditLog:
destination: syslog
If the auditLog entry is missing, or the destination does not reflect the intended application location, this is a finding.
Investigate whether there have been any incidents where MongoDB ran out of audit log space since the last time the space was allocated or other corrective measures were taken.
V-265953
False
MD7X-00-012400
MongoDB relies on the underlying operating system to allocate storage capacity for audit logs and as such, does not enforce arbitrary file size limits on audit logs.
System administrators should confirm that the recommended centralized system logging has been enabled (e.g., syslog on Linux systems) in the /etc/mongod.conf configuration file.
For example, on a Linux-based system using syslog which is mirrored to an off-server centralized location, confirm that the MongdoDB configuration file (default location: /etc/mongod.conf) contains a properly configured auditLog such as follows:
auditLog:
destination: syslog
If the auditLog entry is missing, or the destination does not reflect the intended application location, this is a finding.
Investigate whether there have been any incidents where MongoDB ran out of audit log space since the last time the space was allocated or other corrective measures were taken.
M
5637