Skip to content

Wrong log_time in sql view when log_time is out of order #1073

@esbenboye

Description

@esbenboye

lnav version
v0.11.1 on MacOS Big Sur (11.4) installed from HomeBrew

Describe the bug
If I have a log with entries that are out-of-order and switch to the SQL view, then log_time in sql view is wrong. It seems that lnav is simply using the latest timestamp that was in order.

I would expect the sql view to keep the original log_time.

To Reproduce
Run lnavn againt the attachment demo.log

This will show that the first 7 lines are in order, but from then on, they are out of order (I have collected some access logs from a some containers and put them into one file to get this result).

Screenshot 2022-10-19 at 08 09 40

When switching to sql view (by pressing v) and doing a SELECT * FROM access_log, it will produce a list, but all the lines that are out of order, have inherited the latest log_time that was in order.

Screenshot 2022-10-19 at 08 09 56

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions