Actions
Regression #14517
closedLog rotation is not active if the configuration contains an empty ``<syslog>`` section or if that section is not present
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
23.09
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:
Description
Similar to how logging didn't work in #14283, if the <syslog>
section of config.xml
is missing or empty, the newsyslog configuration for log rotation does not end up in /var/etc/newsyslog.conf.d/pfSense.conf
.
As with #14283 there is an invalid test at src/etc/inc/syslog.inc#L520 that doesn't setup the newsyslog configuration when that configuration section is empty.
Simple workaround is to set some value in the log settings ( Status > System Logs , Settings tab ) such as disabling rotation compression.
Checking the source I don't see any other places using that same test, this is the only one remaining.
Actions