lnav icon indicating copy to clipboard operation
lnav copied to clipboard

Change regex for recognizing errors in the syslog format

Open rzadp opened this issue 5 years ago • 1 comments

I have found that err is used as an alias to error. Changing the regex to catch err would work for both usages.

rzadp avatar Jan 01 '21 17:01 rzadp

This would result in a huge number of false positives since many messages that are not errors contain the string err (see also https://github.com/tstack/lnav/issues/733).

I suggest not merging this as-is (and instead use overrides like documented in https://docs.lnav.org/en/latest/formats.html, https://github.com/tstack/lnav/pull/1113 improves the docs a bit). For me this would result in false positives for all messages containing referral, override overridden, deferred, preferred, interrupt, providerruntime, ownerrole ... Many randomly generated strings/IDs are also likely to contain err.

nodiscc avatar Jan 23 '23 14:01 nodiscc