This topic describes how to enable the log audit feature in the ApsaraDB for Redis console. This topic also describes how to use the feature to deliver audit logs, slow query logs, and operational logs to Log Service.

Prerequisites

  • An ApsaraDB for Redis instance whose engine version is Redis 4.0 or later is created. The instance must be of Community Edition or Enterprise Edition (performance-enhanced). For more information, see Step 1: Create an ApsaraDB for Redis instance.
  • Log Service is activated.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. In the upper-left corner of the page, select the region where the ApsaraDB for Redis instance resides.
  3. On the Instances page, click the name of the required instance.
  4. In the left-side navigation pane, choose Logs > Audit Log.
  5. Select Free Trial and click Enable Audit Logs.
    The official version is unavailable.
  6. In the Enable Audit Logs dialog box, click OK.

What to do next

After ApsaraDB for Redis logs are collected by using Log Service, you can search, analyze, download, ship, and transform these logs. You can also configure alerts for these logs. For more information, see Common operations on logs of Alibaba Cloud services.