This topic describes how to query active logs of an ApsaraDB for Redis instance. In the Logs module of the ApsaraDB for Redis console, you can check the active logs that are generated in the last 72 hours to troubleshoot operations and maintenance (O&M) issues.

Prerequisites

  • Either of the following instances is used: ApsaraDB for Redis instances of Community Edition and performance-enhanced instances of Enhanced Edition.
  • The engine version of the ApsaraDB for Redis instance is Redis 4.0 or later.
  • The ApsaraDB for Redis instance uses the latest minor version.
Note If your instance version does not allow you to query active logs and must be upgraded before you can use the active log feature, upgrade the major or minor version as needed. For more information, see Upgrade the minor version and Upgrade the major version.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. In the top navigation bar, select the region where the target instance is located.
  3. On the Instances page, click the Instance ID of the target instance.
  4. The Instance Information page appears. In the left-side navigation pane, choose Logs > Active Logs.
  5. On the Active Logs page, click Set query time in the Query Time field, select a preset period, or set Start Time and End Time, and then click OK.
    Note If you use a cluster instance of ApsaraDB for Redis, you can select the required node in the Node drop-down list next to Query Time.