Redis Server: SLOWLOG
SLOWLOG subcommand [argument]
Redis SLOWLOG command is used in order to read and reset the Redis slow queries log.
What is Redis SLOW LOG?
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, sending the reply and so forth, but just the time needed to actually execute the command.
Syntax:
SLOWLOG subcommand [argument]
Available since
2.2.12.
Return Value
Simple string reply
Return Value Type
String
Example: Redis SLOWLOG
redis 127.0.0.1:6379> slowlog get 2 1) 1) (integer) 14 2) (integer) 1309448221 3) (integer) 15 4) 1) "ping" 2) 1) (integer) 13 2) (integer) 1309448128 3) (integer) 30 4) 1) "slowlog" 2) "get" 3) "100"
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics