You can filter audit logs by the account name, client IP, database name (database ID), command, or cluster node.

Prerequisites

  • The database version of the ApsaraDB for Redis instance is Redis 4.0 and later.
  • The ApsaraDB for Redis instance uses the latest minor version.
  • The log auditing feature is enabled.
  • Logs exist in the specified time range.
Note If your instance version does not meet the conditions for using the log auditing feature and you need to upgrade the version, upgrade the major or minor version as needed. For more information, see Upgrade the minor version and Upgrade the major version.

Precautions

This topic is applicable to the earlier version of the log service of ApsaraDB for Redis. For more information about the latest version, see Filter audit logs.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. In the upper-left corner of the page, select the region where the instance is deployed.
  3. On the Instances page, click the target instance ID or click Manage in the Actions column.
  4. In the left-side navigation pane of the Instance Information page, choose Logs > Audit Log.
  5. Select or enter the required conditions to filter audit logs.Filter audit logs
    Note For cluster instances, you can select Child ID to filter logs.
  6. Then, click Filter.