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 #0336: Limit the number of lines read from a single logfile

ComponentLivestatus
TitleLimit the number of lines read from a single logfile
Date2013-12-16 13:43:34
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.2.5i1
LevelProminent Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

If for some reason you have very large history logfiles with millions of entries then Livestatus would consume large amounts of memory while parsing these when you access the log table. This could lead to a hanging system or even a crash.

In order to avoid such situations the number of lines that are read from each individual file are now limited. The default limit is one million lines. You can change this default by defining the variable max_lines_per_logfile in your nagios.cfg. The following example sets the maximum number to 20 million lines:

broker_module=/some/path/livestatus.o max_lines_per_logfile=20000000 ...

When using the Check_MK Micro Core the configuration can be done via WATO global setting Maximum number of parsed lines per log file.