Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the regex for matching all ERR syslog (#3282)
The default regex used by loganalyzer for matching any ERR log message is simply "ERR". This regex can match any log messages with string "ERR" and could raise false alarms for log message like below: 'Apr 5 11:55:34.729009 vlab-01 INFO systemd[1]: run-docker-runtime\\x2drunc-moby-e5b9fe570311286438d6044a27c592b8d24d8d1033a9c90ea5e93507b6045017-runc.XrDERR.mount: Succeeded. This change improved the regex from "ERR" to " ERR ". Then it is able to catch any real "ERR" level log messages and raise less false alarm. Signed-off-by: Xin Wang <[email protected]>
- Loading branch information