Updated on 2024-10-17 GMT+08:00

Viewing Redis Run Logs

Run logs of a Redis instance can be queried on the DCS console. Logs of a specified time can be collected into the redis.log file, and downloaded to the local.

Instance running exceptions include AOF rewrites, configuration modifications, critical operations, and master/standby switchovers.

Notes and Constraints

  • This function is supported by DCS Redis 4.0 instances and later.
  • The logs are retained for seven days, and are automatically deleted later.
  • A maximum of seven days of run logs can be queried for a Redis instance.

Procedure

  1. Log in to the DCS console.
  2. Click in the upper left corner of the management console and select the region where your instance is located.
  3. In the navigation pane, choose Cache Manager.
  4. Click a DCS instance.
  5. Click the Run Logs tab.
  6. Click Collect Logs, specify the collection period, and click OK.

    If the instance is the master/standby, read/write splitting, or cluster type, you can specify the shard and replica whose run logs you want to collect. If the instance is the single-node type, logs of the only node of the instance will be collected.

    A log file contains logs of one day. For example, if you select last 3 days, three log files will be generated.

  7. After the log file is successfully collected, click Download to download it.

    The Redis kernel generates few logs, so your selected period may contain no logs.