Learn more about the latest product updates at the Checkmk Conference #12 – live from June 16-17! Watch here

Werk #7489: mk_logwatch: optimize regex search

Component Checks & agents
Title mk_logwatch: optimize regex search
Date Jun 25, 2019
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.0.0i1 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT
1.6.0b3 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT

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.

To the list of all Werks