Updated on 2024-06-07 GMT+08:00

Log Reporting

Scenarios

If you enable log reporting, all logs generated by DRS instances (including real-time migration, backup migration, real-time synchronization, real-time disaster recovery, and workload replay instances) are uploaded to Log Tank Service (LTS) for management.

Precautions

  • After this function is enabled, all logs of the task are reported by default.
  • This request does not take effect immediately. There is a delay of about 10 minutes.
  • You will be billed for this function. For details, see LTS Pricing Details.
  • Ensure that there are available LTS log groups and log streams in the same region as your instance.

    For more information about log groups and log streams, see Log Management.

  • After this function is disabled, you will not be billed anymore.

Enabling or Disabling Log Reporting

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Choose Database > Data Replication Service. The Data Replication Service page is displayed.
  4. Take real-time migration as an example. On the Online Migration Management page, click the target migration task name in the Task Name/ID column. The operations for real-time synchronization, real-time disaster recovery, and workload replay are similar to those for real-time migration.
  5. On the Basic Information page, click Migration Logs on the left.
  6. Click next to Report Logs to LTS in the upper part of the page.
  7. Select an LTS log group and log stream and click OK.

    This request does not take effect immediately. There is a delay of about 10 minutes.

    Figure 1 Enabling audit log reporting to LTS

  1. To disable or modify log reporting, click the toggle switch next to Report Logs to LTS or click Edit next to the Report Logs to LTS toggle switch.

    • Modifying log reporting: Click Edit next to the Report Logs to LTS toggle switch. In the displayed dialog box, select the LTS log group and log stream again and click OK.
    • Disabling log reporting: Click the toggle switch next to Report Logs to LTS. In the displayed dialog box, click OK.
      Figure 2 Disabling log reporting to LTS