SLOWLOG GET

Since 1.1.0Observability

Syntax

SLOWLOG GET [count]

Returns the newest entries of the slow log: 10, count, or all of them with -1.

Each entry has its ID, the Unix time it was logged, how many microseconds the command took, the command and its arguments, the client's address, the client's name, and how many arguments the command had.

Examples

> CONFIG SET slowlog-log-slower-than 0
OK
> GET a
(nil)
> SLOWLOG GET 1
1) 1) (integer) 1
   2) (integer) 1792968201
   3) (integer) 717
   4) 1) "GET"
      2) "a"
   5) "127.0.0.1:57956"
   6) ""
   7) (integer) 2

Secrets are not recorded: the passwords given to ACL SETUSER and to MIGRATE ... AUTH or AUTH2, and the values of requirepass, masterauth, primaryauth, cluster-bus-secret and the TLS key passphrases given to CONFIG SET, are shown as (redacted). AUTH and HELLO ... AUTH are never recorded. Before 1.2 those values were shown (GHSA-c4xj-63wm-4jj9).