How do I enable, access, or delete CloudWatch logs for AWS DMS?
Last updated: 2021-02-10
I want to manage the logs for my AWS Database Migration Service (AWS DMS) task. How do I enable, access, or delete Amazon CloudWatch logs for AWS DMS?
Resolution
Note: If you receive errors when running AWS Command Line Interface (AWS CLI) commands, make sure that you’re using the most recent AWS CLI version.
Enable logging for a new DMS task
To enable logging for a new AWS DMS task, choose Enable CloudWatch logs when you create a task.
Enable logging for an existing DMS task
To enable logging for an existing task:
- Open the AWS DMS console, and then choose Database migration tasks from the navigation pane.
- If the task is in the Failed or Stopped status, then select the task and choose Actions. Choose Modify, and then choose Enable CloudWatch logs.
- If the task is in the Running status, you can change the task setting for logging using the AWS CLI.
- If the AWS Identity and Access Management (IAM) role dms-cloudwatch-logs-role doesn't exist in the AWS account running the task, then follow the steps in Why can't I see CloudWatch Logs for an AWS DMS task?
After you enable logging, you can manage the AWS DMS task logs.
View the logs of a DMS task
To view the logs of a task that has run, follow these steps:
- Open the AWS DMS console, and then choose Database migration tasks from the navigation pane.
- Choose the name of your task.
- From the Overview details section, choose View logs.
Delete the logs of a DMS task
To delete logs, follow these steps:
- Open the AWS DMS console, and then choose Replication instances from the navigation pane.
- Choose the name of the replication instance that hosts your task.
- From the Log management section, select the logs you want to delete.
- Choose Delete.
- Confirm that you want to delete the logs permanently by choosing Delete.
You can also delete AWS DMS logs from the CloudWatch console by following these steps:
- Open the CloudWatch console, and then choose Logs from the navigation pane.
- Use the Filter field for search for your log files. The log group has the prefix dms.
- Choose the log group, and then choose Actions.
- Choose Delete log group.
- Confirm that you want to delete the logs permanently by choosing Delete.
Related information
Did this article help?
Do you need billing or technical support?