Project

General

Profile

Actions

Regression #14517

closed

Log rotation is not active if the configuration contains an empty ``<syslog>`` section or if that section is not present

Added by Jim Pingle 11 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Logging
Target version:
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

Also available in: Atom PDF