↑ ↓ select, Enter open, Esc close

Show slow Redis commands (SLOWLOG)

Adjust the values, the command updates live
user@server
redis-cli SLOWLOG GET 10

Prints the latest slowlog entries: sequence number, Unix timestamp, duration in microseconds and the command with its arguments. By default, everything that takes longer than 10 milliseconds is logged (slowlog-log-slower-than 10000). Typical culprits are KEYS *, large HGETALL calls or DEL on very large keys.

Note: Only the pure execution time inside Redis is measured, not network or waiting time. SLOWLOG RESET clears the log.

Also searched as

  • redis is slow
  • which redis commands are slow
  • read redis slowlog

Related one-liners

All in Redis and Memcached

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.