You can query audit logs to view request records within a period, and filter the records by using various filter criteria.

Prerequisites

  • The engine version of the ApsaraDB for Redis instance is Redis 4.0 or later.
  • The minor version of the ApsaraDB for Redis instance is the latest.
  • The log auditing feature is enabled.
Note If your instance version does not meet the conditions for using the log auditing feature and you need to upgrade the version to use this feature, upgrade the major or minor version as needed. For more information, see Upgrade the minor version and Upgrade the major version.

Applicability

This chapter only applies to the previous version of Redis log service. To learn about the current version, see View audit logs.

Background

If you need to view database request records, find reasons for sudden increase in Redis resource consumption, or find data modification or deletion records, you can query audit logs for detailed clues.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. In the upper-left corner of the top navigation bar, select the region where the target instance is located.
  3. On the Instance List page, click the target instance ID or Manage in the Action column next to the target instance.
  4. On the Instance Information page, choose Logs > Audit Logs from the left-side navigation pane.
  5. On the Audit Logs page, click the calendar icon next to Query Time, select a time option or set Start Time and End Time, and then click OK.
    Note The end time cannot be earlier than the time when log auditing is enabled.