Project

General

Profile

Actions

Bug #14545

closed

Per-log settings for file size and retention count are not honored

Added by odo maitre 10 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
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:
All

Description

Since upgrade from 2.6.0 to 2.7.0 there is something wrong with syslog. When increasing the file size of some logs leaving other at the default value the syslog is not obeying the settings it still rotate them all at the default file size value.

Actions #1

Updated by Steve Wheeler 10 months ago

  • Subject changed from Syslog file size to Syslog individual log file size not set
  • Status changed from New to Confirmed
  • Assignee set to Jim Pingle
  • Target version set to CE-Next
  • Plus Target Version set to 23.09
  • Affected Architecture All added

Setting the log file size for individual logs is not reflected in the generated file: /var/etc/newsyslog.conf.d/pfSense.conf

Rebooting or resetting the log files does not help.

Setting the global log file size works as expected.

Actions #2

Updated by Jim Pingle 10 months ago

  • Subject changed from Syslog individual log file size not set to Per-log settings for file size and retention count are not honored
  • Target version changed from CE-Next to 2.8.0

This also affects the retention count, not just the log size. Easy fix, it's not using the full correct path to the XML values.

Actions #3

Updated by Jim Pingle 10 months ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Danilo Zrenjanin 10 months ago

The patch fixes the described issue.

Tested against:

23.05.1-RELEASE (amd64)
built on Wed Jun 28 03:57:27 UTC 2023
FreeBSD 14.0-CURRENT
Actions #5

Updated by Danilo Zrenjanin 10 months ago

  • Status changed from Feedback to Resolved

I am marking this case resolved.

Actions #6

Updated by Jim Pingle 6 months ago

  • Target version changed from 2.8.0 to 2.7.1
Actions

Also available in: Atom PDF