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

  • The instance is an instance of ApsaraDB for Redis Community Edition or a performance-enhanced instance of ApsaraDB for Redis Enhanced Edition (Tair).
  • 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 Update the minor version and Upgrade the major version.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. In the top navigation bar of the page, select the region in which the instance is deployed.
  3. On the Instances page, click the ID of the 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.