I'm working with hundreds of embedded linux devices trying to make sense of runtime behavior where we have insane quantities of log output (lnav is phenomenal by the way at consuming this much content without getting bogged down), and for which whenever the devices reboot they will get their clocks reset to january 28 2018 and syslog will report this time until NTP kicks in to fix the time.
What this means is when I load any log files into lnav, it is being very smart about applying the constraint that all lines in a given log file are chronological. Indeed this is the case, but let's say syslog.34.gz contains 1000 lines on July 18 2023, then it reboots and shows 400 lines showing Jan 28 2018, then it gets corrected back to July 18 2023 for 300 more lines, then reboots again generating 500 lines on Jan 28 and 6000 lines on July 18, then what lnav does is work backward putting 6000 lines correctly for july 18 2023, 500 lines in jan 28 2023, 300 lines in july 18 2022, 400 lines in jan 2022, and 1000 lines in july 2021.
As you might imagine once I load in a large number of rotated syslog files i will get a jumble of interlaced content that doesn't present anything useful. One thing to note is that if I could filter out all jan 28 content before feeding it into lnav, all the logfiles cover a period of like 5 days and it would certainly do the right thing.
So I'm going to start making a script to try to accurately determine when the time went back to jan 28 and when NTP corrects the time, and .... I should be able to backfill in some sort of reasonable computed times actually. my question is: Does something exist built into lnav that might help me control the time guessing/handling behavior? I know it's a long shot.
Thanks