redis-cli SLOWLOG GET 5

Category: Databases & SQL

redis-cli SLOWLOG GET 5

Show the most recent slow commands

Returns the last 5 commands that exceeded slowlog-log-slower-than, with their duration and timestamp. The first stop when diagnosing latency. Related: MONITOR.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.