Skip to content

Change regex for recognizing errors in the syslog format#824

Open
rzadp wants to merge 1 commit intotstack:masterfrom
rzadp:patch-1
Open

Change regex for recognizing errors in the syslog format#824
rzadp wants to merge 1 commit intotstack:masterfrom
rzadp:patch-1

Conversation

@rzadp
Copy link

@rzadp rzadp commented Jan 1, 2021

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

@nodiscc
Copy link
Contributor

nodiscc commented Jan 23, 2023

This would result in a huge number of false positives since many messages that are not errors contain the string err (see also #733).

I suggest not merging this as-is (and instead use overrides like documented in https://docs.lnav.org/en/latest/formats.html, #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants