Date: Wed, 10 Jan 2018 08:31:47 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 158794] <default> line has been ignored in /etc/newsyslog.conf Message-ID: <bug-158794-8-XFlEstcLOB@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-158794-8@https.bugs.freebsd.org/bugzilla/> References: <bug-158794-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D158794 Airell <freebsd@studio48.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freebsd@studio48.nl --- Comment #2 from Airell <freebsd@studio48.nl> --- Running newsyslog with -vvvvv shows a 'default' <default> entry will be made even if a <default> entry is present in a log file: /etc/newsyslog.conf.d/default.conf # logfilename [owner:group] mode count size when flags <default> 640 7 100 @T00 JN somelog.log 640 7 100 @T00 JN Processing /etc/newsyslog.conf.d/default.conf --> [creating entry for <default>] <-- This is <default> from c= onf --> [creating entry for somelog.log] <-- This is somelog.log from conf --> [creating entry for <default>] <-- This is 'default' <defau= lt> + No entry matched /var/log/nginx/nginx-access-global.log (will use <default>) ... /var/log/nginx/nginx-access-global.log <3>: size (Kb): 7 [50] --> skipping Above example shows the size rotation is 50, not 100. So it's probably taki= ng the last <default> entry, which is the one automatically created: When removing the <default> line from the config, it shows the 'default' <default> entry be made: Processing /etc/newsyslog.conf.d/default.conf --> [creating entry for somelog.log] <-- This is somelog.log from conf --> [creating entry for <default>] <-- This is 'default' <defau= lt> + No entry matched /var/log/nginx/nginx-access-global.log (will use <default>) ... /var/log/nginx/nginx-access-global.log <3>: size (Kb): 7 [50] --> skipping Regards, Airell. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-158794-8-XFlEstcLOB>