Werk #10471: mk_logwatch: Add option to limit context
Component | Checks & agents |
Title | mk_logwatch: Add option to limit context |
Date | Nov 6, 2019 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk Version | 2.0.0i1 |
Level | Trivial Change |
Class | New Feature |
Compatibility | Compatible - no manual interaction needed |
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 "limitcontext=3,4".
This option can be configured using the WATO rule "Text logfiles".