How do I enable, access, and delete CloudWatch logs for AWS DMS?
Last updated: 2019-06-27
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
To enable logging for a new AWS DMS task, choose Enable CloudWatch logs when you create a task.
To enable logging for an existing task:
- Open the AWS DMS console, and then choose Database migration tasks from the navigation pane.
- Select the task, and check that the status of the task is Failed or Stopped.
- (Optional) If the task is Running, select the task, choose Actions, and then choose Stop.
- Choose Modify, and then choose Enable CloudWatch logs.
After you enable logging, you can manage the AWS DMS task logs.
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.
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.
Note: To delete the logs, the task must be in a Failed or Stopped status. - From the Log management section, select the logs that 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 you?
Anything we could improve?
Need more help?