lnav
lnav copied to clipboard
Only first line of log is used for recognizing format
lnav version
v0.11.1
Describe the bug
When recognizing the log format, only the first hit in the file is used.
This means that the line "...Last message repeated 1 times." matches the syslog format, and subsequent lines in the log are not recognized as some more specific format
To Reproduce
- open a log file where the first line is the "...Last message repeated..."
- observe that the recognized format is syslog instead of something more specific
Expected behavior
Analyze a few more lines at the start of the log file to avoid matching generic formats. Or mark certain patterns "not to be used for format recognition"