On the Audit Logs page of the ApsaraDB for Redis console, you can view hot key logs to discover hot keys in your business.

Prerequisites

You have enabled the new logging service. For more information, see Enable audit log service (new version).

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. On the top of the page, select the region where the instance is located.
  3. On Instance List page, click the target Instance ID.
  4. In the left-side navigation pane of the Instance Information page, choose Logs > Audit Logs.
  5. On the Audit Logs page, clear the default conditions in the Keyword filter box. Enter qps and press the Enter key.
    View hot key logs
  6. View hot key logs in the Audit log details section.

    You can view details about hot keys in the Command column. The following table describes relevant parameters.

    Parameter Example Description
    dbid "dbid":0 The database for the hot key.
    type "type":"list" The data structure type of the hot key.
    lfu "lfu":255 The LFU value of the hot key.
    qps "qps":">=6000" The QPS of the hot key. The value must be a range.
    key "key":"testlist" The hot key involved.