Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 7d6d55dab0df41311359185851a82da7dd041748
https://github.com/tribe29/checkmk/commit/7d6d55dab0df41311359185851a82da7d…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2019-11-12 (Tue, 12 Nov 2019)
Changed paths:
A .werks/10471
M agents/plugins/mk_logwatch
M tests/unit/agents/plugins/test_mk_logwatch.py
Log Message:
-----------
10471 mk_logwatch: Add option to limit context
If the plugin mk_logwatch is configured to send context along with found messages,
the amount of data can become quite large. This werk adds the option of limiting
the context given for every warning or critical message to a given number of lines
befor and after the message. For instance, to limit the context to 3 lines before
and four lines after the message, set the option "maxcontextlines=3,4".
This option can be configured using the WATO rule "Text logfiles".
CMK-2923
Change-Id: I8145b348fd8e466ad182f878108664c311f462d9