Werk #336: Limit the number of lines read from a single logfile
|Title||Limit the number of lines read from a single logfile|
|Date||Dec 16, 2013|
|Checkmk Editon||Checkmk Raw (CRE)|
|Compatibility||Compatible - 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.To the list of all Werks