Werk #11517: Detect slow views and log view details in web.log

Component User interface
Title Detect slow views and log view details in web.log
Date Dec 2, 2020
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.1.0b1
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed

Some builtin or own views may take longer time than expected. In order to detect slow views you have to set

  • the log level to DEBUG at Setup > General > Global settings > User Interface > Log levels > Slow views,
  • a threshold (in seconds) at Setup > General > Global settings > User Interface > Threshold for slow views.

The logging is disable by default. The default threshold is set to 60 seconds. If enabled one log entry per view rendering that exceeeds the configured threshold is logged to var/log/web.log and contains the following information:

  • View name
  • User which called this view
  • Row limit
  • Limit Type (none, soft or hard)
  • URL variables
  • View context (eg. filters)
  • #Unfiltered rows
  • #Filtered rows
  • #Rows after above limit
  • Duration of fetching rows via livestatus
  • Duration of filtering rows
  • Duration of rendering the view
  • Duration of rendering/processing the whole page

To the list of all Werks