-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System > Settings > Logging > Max log filesize (MB) is actually GB #7397
Comments
|
To be honest this looks fine:
https://www.php.net/manual/en/function.filesize.php "Returns the size of the file in bytes" What datapoints are you looking at on the file system? A log file can grow as much as it will given the amount stored and the log rotation is kicked in every hour which could skew your conclusion. It's actually the Cheers, |
|
I found the issue #7273 from this post [https://forum.opnsense.org/index.php?topic=38966.0]. And the post said the log won't be rotated after a day. |
|
IMO this could only mean it’s mismatching on the file to check. I’ll look at it next week. |
|
The problem seems to be the "delete all logs" here, it needed at least two files to calculate the suffix, 73c3b88 should fix this. |
|
👍 |
…s only one file in the directory. closes #7397 The rotate function needed the next file to calculate the suffix, which is problematic if someone just cleaned all logs. This patch improves the match a bit (last _ instead of assuming _ doesn't exist in the name) and uses "1" for the first rotate action. (cherry picked from commit 73c3b88)








Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
System > Settings > Logging > Max log filesize (MB) is actually GB
This bug is a copy of #7273 since it did not use a valid template. And I also have the same issue.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The log files should rotate when they reach the max file size.
Describe alternatives you considered
Please change MB to GB in the description or threat the value as MB, not GB. I personally prefer MB.
Screenshots

Configuration field as the screenshot
Relevant log files
N/A
Additional context
N/A
Environment
OPNsense 24.1.6 (amd64).
The text was updated successfully, but these errors were encountered: