Commit Graph
13 Commits
Author SHA1 Message Date
Veer Singh 4334390423 Cache the joined log buffer and skip it for single-line rules
The log buffer joins every buffered line and scans all of them for
each pattern on every push, which is wasted work when a pattern
cannot even match across lines. The buffer now caches the joined
string, and Push invalidates the cache. CompilePattern marks the
patterns that cannot match across lines (no start anchor, no way to
match a newline, and the appended \z anchor binds every branch) and
Match checks them against the most recent line alone.
2026-07-27 16:37:28 -07:00
Ciprian Hacman b02e2dcd09 Precompile log buffer regular expressions
Compile fixed patterns during monitor and log counter initialization, pass compiled expressions to the log buffer, and reject invalid log counter patterns before watching logs.
2026-07-25 09:21:31 +03:00
Sergey Kanzhelev a4118329f6 enable linter on repository 2025-08-13 16:12:41 +00:00
Eric Lin c225435bea Use --revert-pattern to discount proactive restarts 2024-01-17 18:24:24 +00:00
Eric Lin 1002df5e13 Add --revert-pattern for logcounter 2024-01-17 18:21:57 +00:00
Fan Shang Xiang adbe770d74 replace k8s.io/apimachinery/pkg/util/clock with k8s.io/utils/clock 2023-08-31 06:27:32 +00:00
Fan Shang Xiang b5e4ef628b bump k8s.io to 1.17.2 2023-06-12 22:27:39 +08:00
Xuewei Zhang 5e55ef89f1 Make log-counter respect ENABLE_JOURNALD 2019-11-26 13:58:10 -08:00
Lantao Liu be7cc78aa0 Properly close channel when monitor exits.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-10-25 14:11:39 -07:00
Zhen Wang 1f636381b8 Detect kubelet and container runtime frequent crashes 2018-11-26 22:41:06 -08:00
SataQiu 91adf37050 fix typo: NDDE -> NODE, permenantly -> permanently 2018-11-21 17:36:08 +08:00
Andy Xie 89cfb5261d bump kubernetes to 1.9 2018-07-09 14:59:51 +08:00
David Ashpole bf730e9c63 add log-counter go plugin 2018-06-20 15:55:19 -07:00