We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #0337: New header for limiting the execution time of a query

TitleNew header for limiting the execution time of a query
Date2013-12-16 14:15:27
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.2.5i1
LevelTrivial Change
ClassNew Feature
CompatibilityCompatible - no manual interaction needed

The new Livestatus header Timelimit: sets an upper limit for the execution time of a query. Specify the timeout as a number of seconds. The following query will stop after 5000 lines of output. If that takes longer than 30 seconds, then the query fails with no output:

GET log
Columns: message
Timelimit: 30
Limit: 5000

Please note, that Limit: and Timelimit: have a different behaviour when the limit is reached:

  • Limit: end the query, output all rows that have been found so far.
  • Timelimit: abort the query with an error, do not output any lines.