|
|
|
|
|
by jimpudar
1807 days ago
|
|
How does it handle merging log files that are in different time zones? I wrote a small script to merge log files from lots of different network appliances a long time ago, it was extremely useful for debugging problems that occurred across our distributed system. The most unfortunate part was that the appliances all logged in local time and didn't include their UTC offsets in the timestamps :( |
|
https://docs.lnav.org/en/latest/commands.html#adjust-log-tim...
That can be useful for doing minor alignments if clocks are slightly out of sync or doing timezone adjustments.
You can also adjust the time programmatically by updating the "time_offset" column in the "lnav_file" table:
https://docs.lnav.org/en/latest/sqltab.html#lnav-file
Sorry I don't have any examples written up to illustrate this at the moment...