sorting timestamps with and without year #869
Replies: 1 comment
-
If the log messages do not include the year/month/etc... lnav will use the file timestamp to figure those values out. If a rollover is detected while processing messages, then the previously processed messages will have their timestamps rolled back. Here's some examples from the test suite: Lines 253 to 307 in ace6394 The first case is a syslog file where there is no year, so that's taken from the file timestamp (or the timestamp embedded in the gzip file) that is set to a specific time for the test. The last case is more extreme since the format only has minutes, seconds, and milliseconds.
I'm not sure what you're thinking of here, can you elaborate or does the above cover your need? |
Beta Was this translation helpful? Give feedback.
-
Where do we stand on combining logs some with and some without the year in the timestamp? Many other projects assume current year and treat new year as an edge case. Can we at least offer it as an option (env var would be real nice for that so we don't have to add more to the command line)? This is especially helpful when troubleshooting same-day events across multiple services where some do not include the year.
Beta Was this translation helpful? Give feedback.
All reactions