Refactoring: Changed remaining check parameters starting with an 's' to the new rules...
[check_mk.git] / .werks / 336
blob68c452f12eeeb25c5e80a372a70449b8045c0b81
1 Title: Limit the number of lines read from a single logfile
2 Level: 2
3 Component: livestatus
4 Class: fix
5 State: unknown
6 Version: 1.2.5i1
7 Date: 1387197814
8 Targetversion: future
10 If for some reason you have very large history logfiles with millions of
11 entries then Livestatus would consume large amounts of memory while parsing
12 these when you access the <tt>log</tt> table. This could lead to a hanging
13 system or even a crash.
15 In order to avoid such situations the number of lines that are read from each
16 individual file are now limited. The default limit is one million lines. You
17 can change this default by defining the variable <tt>max_lines_per_logfile</tt>
18 in your <tt>nagios.cfg</tt>. The following example sets the maximum number
19 to 20 million lines:
21 F+:
22 broker_module=/some/path/livestatus.o max_lines_per_logfile=20000000 ...
23 F-:
25 When using the Check_MK Micro Core the configuration can be done
26 via WATO global setting <i>Maximum number of parsed lines per log file</i>.