Slowlog inspection

List 10 slowest commands with args 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

    Human-readable latency analysis with likely causes; pair with LATENCY HISTORY <event>

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

    Find long-lived/idle connections leaking sockets; sort by age then idle

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

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

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

    Open interactive Redis CLI session

  • redis-cli -h redis INFO all

    Full server information: memory, CPU, clients, persistence

all 32 redis commands