Amazon DocumentDB clusters should publish audit logs to CloudWatch Logs
Description
This control checks whether an Amazon DocumentDB cluster publishes audit logs to Amazon CloudWatch Logs. The control fails if the cluster doesn't publish audit logs to CloudWatch Logs. Amazon DocumentDB (with MongoDB compatibility) allows you to audit events that were performed in your cluster. Examples of logged events include successful and failed authentication attempts, dropping a collection in a database, or creating an index. By default, auditing is disabled in Amazon DocumentDB and requires that you take action to enable it.
Remediation
Enable audit logging for your Amazon DocumentDB cluster by configuring CloudWatch Logs export for audit logs.
Steps
- Open the Amazon DocumentDB console.
- Choose 'Clusters' from the navigation pane.
- Select the cluster you want to modify.
- Choose 'Modify'.
- In the 'Log exports' section, select 'audit' to enable audit logs.
- Choose 'Continue' and then 'Modify cluster'.