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 RESET

Last updated
SLOWLOG RESET
Group
Server
Complexity
O(N) where N is the number of entries
Arity
2 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

SLOWLOG RESET deletes every entry in the slow log. Entry ids are not reset: the next entry logged gets the next id, so tools that track the last id they read do not miss or repeat entries.

Simple string OK in RESP2 and RESP3.

127.0.0.1:6379> SLOWLOG RESET
OK
127.0.0.1:6379> SLOWLOG LEN
(integer) 0

Same as Redis 7 and Valkey 8.

SLOWLOG GET, SLOWLOG LEN