OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: alperal on August 13, 2023, 05:47:52 AM

Title: Firewall:Log Files:Live View -> Not refreshing, timezone issue.
Post by: alperal on August 13, 2023, 05:47:52 AM
Hello everyone,

I've encounter this issue.  When trying to view the Live View firewall logs,

Firewall:Log Files:Live View -> It does not refresh when setting the firewall's timezone other than UTC.

Known issue or am I missing something ?

Thanks,
Title: Re: Firewall:Log Files:Live View -> Not refreshing, timezone issue.
Post by: CJ on August 13, 2023, 03:34:32 PM
Are you sure that you have Auto Refresh checked?  It works for me and I'm not running UTC.
Title: Re: Firewall:Log Files:Live View -> Not refreshing, timezone issue.
Post by: alperal on August 13, 2023, 03:42:34 PM
I do, also clicking on the refresh button.

It was on UTC, changed it to Chicago time.

Went back to the Live View logs, not moving.

Rebooted in Chicago time zone, same thing.  Put it back to UTC, and logs are showing again.
Title: Re: Firewall:Log Files:Live View -> Not refreshing, timezone issue.
Post by: alperal on August 13, 2023, 03:43:30 PM
Is there a way to move this post to 23.7 ?
Title: Re: Firewall:Log Files:Live View -> Not refreshing, timezone issue.
Post by: Fright on August 13, 2023, 06:56:55 PM
@alperal
22.7 / 23.7 behave the same IMHO
the log reader doesn't take the time zone into account (really worth it considering the possible extra overhead of casting all records to the UTC and back to the user time zone in the GUI?)
so with an offset of -5H you already have entries in the logs that are "more recent" than just being logged.
so you can either clear the logs after the zone change or wait 5 hours)
Title: Re: Firewall:Log Files:Live View -> Not refreshing, timezone issue.
Post by: alperal on August 14, 2023, 01:58:38 AM
Ahhh makes sense, thank you !