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:

  1. Open the AWS DMS console, and then choose Database migration tasks from the navigation pane.
  2. Select the task, and check that the status of the task is Failed or Stopped.
  3. (Optional) If the task is Running, select the task, choose Actions, and then choose Stop.
  4. 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:

  1. Open the AWS DMS console, and then choose Database migration tasks from the navigation pane.
  2. Choose the name of your task.
  3. From the Overview details section, choose View logs.

To delete logs, follow these steps:

  1. Open the AWS DMS console, and then choose Replication instances from the navigation pane
  2. 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.
  3. From the Log management section, select the logs that you want to delete.
  4. Choose Delete.
  5. 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:

  1. Open the CloudWatch console, and then choose Logs from the navigation pane.
  2. Use the Filter field for search for your log files. The log group has the prefix dms.
  3. Choose the log group, and then choose Actions.
  4. Choose Delete log group.
  5. Confirm that you want to delete the logs permanently by choosing Delete.