DMS replication tasks for the target database should have logging enabled
Description
This control checks if logging is enabled with a minimum severity level of LOGGER_SEVERITY_DEFAULT for DMS replication tasks, specifically for TARGET_APPLY and TARGET_LOAD operations. The control fails if logging is not enabled for these tasks or if the minimum severity level is set lower than LOGGER_SEVERITY_DEFAULT. DMS utilizes Amazon CloudWatch to log information during the migration process. Users can configure logging task settings to specify which component activities are logged and the amount of information to be logged.
Remediation
Enable logging for DMS replication tasks with appropriate severity levels for target database operations.
Steps
- Navigate to the AWS DMS console
- Go to the Database migration tasks section
- Select the replication task that needs logging
- Modify the task settings
- In the 'Logging' section, enable 'Target apply logging' and 'Target load logging'
- Set the severity level to at least 'LOGGER_SEVERITY_DEFAULT' or higher
- Configure CloudWatch Logs destination if needed
- Save the configuration changes
- Verify that logging is now enabled for the target database operations