SLOWLOG

Since 1.1.0ObservabilityChanged in 1.2.1

Syntax

SLOWLOG
  • Flags: admin
  • ACL categories: @admin, @dangerous, @slow
  • Arity: -2

History

  • 1.2.1: acl categories: removed server

The slow log: the commands that took longer than slowlog-log-slower-than microseconds to run, up to slowlog-max-len entries (128 by default). slowlog-log-slower-than is -1 by default, which logs nothing: unlike Redis, whose default is 10,000, KiviDB's slow log is off until it is set. 0 logs every command. The time is how long the command ran, not the time spent waiting or reading it. See its subcommands.

Subcommands

  • SLOWLOG GET: Returns the newest entries of the slow log: 10, count, or all of them with -1.
  • SLOWLOG HELP: Lists the SLOWLOG subcommands, with their arguments and a line on what each does: GET, with the fields of an entry, LEN, RESET and HELP itself.
  • SLOWLOG LEN: Returns how many entries the slow log holds now.
  • SLOWLOG RESET: Empties the slow log: SLOWLOG GET and SLOWLOG LEN start again from nothing.