SLOWLOG

Syntax
SLOWLOG
Available since:
2.2.12
Time complexity:
Depends on subcommand.
ACL categories:
@slow,

The Redis Slow Log is a system to log queries that exceeded a specified execution time. The execution time does not include I/O operations like talking with the client, just the time needed to execute the command (this is the only stage of command execution where the thread is blocked and cannot serve other requests).

A new entry is added to the slow log whenever a command exceeds the execution time threshold defined by the slowlog-log-slower-than configuration directive.

The maximum number of entries in the slow log is governed by the slowlog-max-len configuration directive. This is a container command for slow log management commands.

See SLOWLOG GET for a description of what's stored in the Redis slow log. To see the list of available commands use the SLOWLOG HELP command.


RATE THIS PAGE
Back to top ↑