Check and reset the slow log

Show the last 10 slow commands with arguments and duration, then clear the log

redis-cli SLOWLOG GET 10; redis-cli SLOWLOG RESET

tool
redis32 commands
tags
redisperformancetroubleshootingobservability

More redis commands

  • redis-cli LATENCY DOCTOR

    Readable latency report with likely causes, use it together with LATENCY HISTORY <event>

  • redis-cli CLIENT LIST | tr ' ' '\n' | grep -E 'addr=|age=|idle=' | paste - - - | sort -t= -k3 -rn | head

    Find long-lived or idle connections that leak sockets, sorted by age

  • redis-cli --cluster check <host>:<port>

    Check slot coverage, node consistency and open slots across the cluster

  • redis-cli -h redis -p 6379 -a <password>

    Open an interactive redis-cli session

  • redis-cli -h redis INFO all

    Full server info: memory, CPU, clients, persistence

all 32 redis commands