Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

SLOWLOG LEN

Last updated
SLOWLOG LEN
Group
Server
Complexity
O(1)
Arity
2 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

SLOWLOG LEN returns how many entries the slow log holds now. It is never more than slowlog-max-len: once the log is full, each new entry pushes out the oldest one.

An integer, in RESP2 and RESP3.

127.0.0.1:6379> SLOWLOG LEN
(integer) 42

Same as Redis 7 and Valkey 8.

SLOWLOG GET, SLOWLOG RESET