conf/99844: incorrect default newsyslog.conf settings

Anton Korotin korotin at
Thu Jul 6 15:30:19 UTC 2006

>Number:         99844
>Category:       conf
>Synopsis:       incorrect default newsyslog.conf settings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 06 15:30:16 GMT 2006
>Originator:     Anton Korotin
>Release:        FreeBSD 6.1-RELEASE i386
FreeBSD 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:42:56 UTC 2006     root at  i386 
The problem is a combination of two facts:

1) According to default newsyslog.conf settings some log files 
   are rotated only by size, on reaching 100K size limit. 

2) syslogd has hard-coded format for writing date into log files.
   Year is not included and hence can't be written into logs.

The problem appears when the log file grows slower then 100K per year.
In this case it becomes hard (or even impossible) to distinguish
records created on the same day but different years.

One visible effect is 'false positives' of 
script, which analyses /var/log/auth.log file and may report 
about events happened one or more years ago while it's expected 
to report only 'yesterday' login failures as it's result is 
included in daily security reports.


Variants are:
a) to teach syslogd writing date in log files with year value
b) rotate log files at least once a year despite of their sizes

More information about the freebsd-bugs mailing list