Open nwwatson opened 2 months ago
addresses MD7X-00-007000
addresses MD7X-00-007100
addresses MD7X-00-007200
addresses MD7X-00-007900
adressess MD7X-00-009400
addresses MD7X-00-009500
addresses MD7X-00-009600
addresses MD7X-00-009700
addresses MD7X-00-009800
addresses MD7X-00-009900
addresses MD7X-00-010000
addresses MD7X-00-010100
addresses MD7X-00-010200
addresses MD7X-00-010300
addresses MD7X-00-010400
addresses MD7X-00-010500
addresses MD7X-00-010600
addresses MD7X-00-010700
addresses MD7X-00-010800
addresses MD7X-00-010900
addresses MD7X-00-011000
addresses MD7X-00-011100
addresses MD7X-00-011200
addresses MD7X-00-011300
addresses MD7X-00-011400
addresses MD7X-00-011500
addresses MD7X-00-011600
addresses MD7X-00-011700
addresses MD7X-00-011800
addresses MD7X-00-011900
addresses MD7X-00-012000
Edit the MongoDB configuration file (default location: /etc/mongod.conf) and add a configured "auditLog" setting:
Note: The "/var/log/mongodb/audit" directory will need to be created/present or the database will not start.
Alternately, the audit logs can be written to syslog with the following setting:
This setting will record the following operations: schema (DDL), replica set and sharded cluster and authentication and authorization.
To capture all operations in the audit, enable the audit system to log authorization successes by adding the following line to the /etc/mongod.conf file:
Setting of auditAuthorizationSuccess enables auditing of authorization success for the authCheck action. The parameter value must be true to audit read and write operations. However, when auditAuthorizationSuccess is false auditing has less performance impact because the audit system only logs authorization failures.
If the "auditLog" setting was present and contained a filter parameter, ensure the "filter:" expression does not prevent the auditing of events that should be audited or remove the "filter:" parameter to enable auditing all events.
Documentation on configuring filters can be found here: https://docs.mongodb.com/v7.0/tutorial/configure-audit-filters/