OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: sysel on November 13, 2025, 07:51:02 PM

Title: System: Log Files: General - strange behavior of filter
Post by: sysel on November 13, 2025, 07:51:02 PM
Hello,
I have found strange behavior when using filter in System: Log Files: General. I was trying to filter with PPPoE string and nothing appeared for Last day. It was strange as there was boot today. So I changed it to No Limit and there is filtered result. When I change it back to Last Day/Week/Month there is nothing.. See below screenshot. Same behavior on mobile device version. It makes same thing when using some other word to filter..


log1.PNG
log2.PNG
Title: Re: System: Log Files: General - strange behavior of filter
Post by: jdgesmlls on November 14, 2025, 06:26:44 AM
I just registered on the forums to report this very issue. I noticed it while trying review query logs for DNSCryptProxy. First observed after updating to OPNsense 25.7.7_4-amd64.

This thread shows the same issue from September 2024
https://forum.opnsense.org/index.php?topic=42854.0

There was a ticket opened for the issue back then: https://github.com/opnsense/core/pull/7889 and fixed merged.
Possible fix: https://github.com/opnsense/core/commit/2a1ccae9

Check System: Log Files: Backend to confirm if error is present:

[04f91e7b-cc44-427e-85ef-8ddad32c9987] Script action failed with Command '/usr/local/opnsense/scripts/syslog/queryLog.py --limit '50' --offset '0' --filter '' --module 'dnscryptproxy' --filename 'dnscrypt-proxy' --severity 'Emergency,Alert,Critical,Error,Warning' --valid_from '1762984044.205'' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 89, in execute subprocess.run(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/syslog/queryLog.py --limit '50' --offset '0' --filter '' --module 'dnscryptproxy' --filename 'dnscrypt-proxy' --severity 'Emergency,Alert,Critical,Error,Warning' --valid_from '1762984044.205'' returned non-zero exit status 1.

I guess it is possible the fix was reverted somehow... ?
Title: Re: System: Log Files: General - strange behavior of filter
Post by: pfry on November 14, 2025, 06:08:50 PM
Quote from: jdgesmlls on November 14, 2025, 06:26:44 AM[...]Check System: Log Files: Backend to confirm if error is present:[...]

Ah, I'd missed those. I have them starting on 9/15/2025, whichever version that would have been... perhaps 25.7.3_7.
Title: Re: System: Log Files: General - strange behavior of filter
Post by: jdgesmlls on November 14, 2025, 06:27:23 PM
Quote from: pfry on November 14, 2025, 06:08:50 PM
Quote from: jdgesmlls on November 14, 2025, 06:26:44 AM[...]Check System: Log Files: Backend to confirm if error is present:[...]

Ah, I'd missed those. I have them starting on 9/15/2025, whichever version that would have been... perhaps 25.7.3_7.
I didn't go back that far but that sounds plausible. Would this require a new issue on https://github.com/opnsense/core/issues?