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 #7489: mk_logwatch: optimize regex search

ComponentChecks & Agents
Titlemk_logwatch: optimize regex search
Date2019-06-25 09:31:00
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.6.0b3,2.0.0i1
LevelTrivial Change
ClassNew Feature
CompatibilityCompatible - no manual interaction needed

For regular expressions in a logwatch section leading or trailing '.*' portions can be a performance desaster. With long log lines, it can virtually render your system paralyzed. If you are not using any rewrite patterns though, you can omit leading and trailing '.*' expressions without changing the set of matched lines.

mk_logwatch now detects those cases, and will optimize the patterns accordingly.