In the ApsaraDB for Redis console, you can view slow logs for a specified period of time to gain insight on resolving performance issues and optimizing requests.


ApsaraDB for Redis uses slow logs to record requests that run for a long time. If a command takes longer to run than the time specified by the slowlog-log-slower-than parameter (in microseconds), the command is recorded in a slow log. In ApsaraDB for Redis, the default value of the slowlog-log-slower-than parameter is 10000 μs (10 ms).
Note The slow log threshold on proxy nodes of a cluster instance is 500 ms. This value can not be changed.

The slowlog-max-len parameter specifies the maximum number of slow logs that can be stored by an ApsaraDB for Redis instance. By default, an ApsaraDB for Redis instance stores up to 128 slow logs.

Note For more information about how to set this parameter, see Parameter overview and configuration guide. We recommend that you do not change the default value of the slowlog-log-slower-than parameter unless otherwise required.

View slow logs on the Logs page


  • The engine version of the ApsaraDB for Redis instance is Redis 4.0 and later.
  • The ApsaraDB for Redis instance uses the latest minor version.
Note If your instance version does not meet the conditions for querying slow logs and you want to upgrade the version, you can upgrade the major or minor version as needed. For more information, see Upgrade the minor version and Upgrade the major version.


  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 Manage in the Actions column for the target instance.
  4. In the left-side navigation pane of the Instance Information page, choose Logs > Slow Logs.
  5. For cluster instances, specify the node type for which you want to query slow logs.
    • The slow log service only provides logs for data nodes of other instances. You do not need to specify the node type.
    • The slow log threshold on proxy nodes is 500 ms. This value cannot be changed.
  6. On the Slow Logs page, click the calendar icon next to Query Time, select a preset time option or set Start Time and End Time, and then click OK.View slow logs on the Logs page in the console