This topic describes how to view 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 were generated in the last 72 hours to troubleshoot O&M issues.

Prerequisites

  • The instance is a performance-enhanced instance that uses local disks or an instance of the ApsaraDB for Redis Community Edition. For more information about performance-enhanced instances, see Performance-enhanced instances.
  • The database engine version of the instance is Redis 4.0 or later.
  • The instance is updated to the latest minor version.
Note If your instance does not meet these requirements, upgrade the major version or update the minor version of the instance. For more information, see Update the minor version and Upgrade the major version.

Procedure

  1. Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click the instance ID.
  2. In the left-side navigation pane, choose Logs > Active Logs.
  3. On the Active Logs page, click the Calendar icon icon in the Query Time field and select a preset period.
    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.
  4. Click Search.

Related API operations

Operation Description
DescribeRunningLogRecords Queries active logs of an ApsaraDB for Redis instance.