From ncbp@pebbles.tele.dk  Sun Feb 27 11:32:04 2000
Return-Path: <ncbp@pebbles.tele.dk>
Received: from pebbles.tele.dk (pebbles.tele.dk [193.162.159.96])
	by hub.freebsd.org (Postfix) with ESMTP id 097D237B6A9
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Feb 2000 11:32:02 -0800 (PST)
	(envelope-from ncbp@pebbles.tele.dk)
Received: (from root@localhost)
	by pebbles.tele.dk (8.9.3/8.9.3) id UAA44783;
	Sun, 27 Feb 2000 20:32:00 +0100 (CET)
	(envelope-from ncbp)
Message-Id: <200002271932.UAA44783@pebbles.tele.dk>
Date: Sun, 27 Feb 2000 20:32:00 +0100 (CET)
From: ncbp@pebbles.tele.dk
Reply-To: ncbp@bank-pedersen.dk
To: FreeBSD-gnats-submit@freebsd.org
Subject: newsyslog.conf not in sync with syslog.conf - all.log entry should be commented
X-Send-Pr-Version: 3.2

>Number:         17022
>Category:       conf
>Synopsis:       newsyslog.conf not in sync with syslog.conf - all.log entry should be commented out
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rwatson
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 27 11:40:01 PST 2000
>Closed-Date:    Sun Oct 28 05:33:18 PST 2001
>Last-Modified:  Sun Oct 28 05:41:50 PST 2001
>Originator:     Niels Chr. Bank-Pedersen
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
NA
>Environment:

	FreeBSD 4.0-CURRENT as of 20000227

>Description:

	In a default installation the entry for "all.log" is commented
        out in syslog.conf, but is active in newsyslog.conf with the result
        that an empty file is rotated and compressed every night.

>How-To-Repeat:

	ls -l /var/log/all*
        -rw-------  1 root  wheel  61 27 Feb 00:00 /var/log/all.log
        -rw-r--r--  1 root  wheel  86 27 Feb 00:00 /var/log/all.log.0.gz

>Fix:


--- /usr/src/etc/newsyslog.conf.orig    Sat Feb 26 13:21:09 2000
+++ /usr/src/etc/newsyslog.conf Sun Feb 27 20:10:16 2000
@@ -9,7 +9,7 @@
 /var/log/maillog                       664  7     *    @T00  Z
 /var/log/sendmail.st                   664  10    *    168   B
 /var/log/messages                      664  5     100  *     Z
-/var/log/all.log                       600  7     *    @T00  Z
+#/var/log/all.log                      600  7     *    @T00  Z
 /var/log/slip.log                      600  3     100  *     Z
 /var/log/ppp.log                       600  3     100  *     Z
 /var/log/security                      600  10    100  *     Z


>Release-Note:
>Audit-Trail:

From: ncbp@pebbles.tele.dk
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: conf/17022: newsyslog.conf not in sync with syslog.conf - all.log entry should be commented
Date: Sun, 27 Feb 2000 20:32:00 +0100 (CET)

 >Number:         17022
 >Category:       conf
 >Synopsis:       newsyslog.conf not in sync with syslog.conf - all.log entry should be commented out
 >Confidential:   no
 >Severity:       non-critical
 >Priority:       low
 >Responsible:    freebsd-bugs
 >State:          open
 >Quarter:        
 >Keywords:       
 >Date-Required:
 >Class:          change-request
 >Submitter-Id:   current-users
 >Arrival-Date:   Sun Feb 27 11:40:01 PST 2000
 >Closed-Date:
 >Last-Modified:
 >Originator:     Niels Chr. Bank-Pedersen
 >Release:        FreeBSD 4.0-CURRENT i386
 >Organization:
 NA
 >Environment:
 
 	FreeBSD 4.0-CURRENT as of 20000227
 
 >Description:
 
 	In a default installation the entry for "all.log" is commented
         out in syslog.conf, but is active in newsyslog.conf with the result
         that an empty file is rotated and compressed every night.
 
 >How-To-Repeat:
 
 	ls -l /var/log/all*
         -rw-------  1 root  wheel  61 27 Feb 00:00 /var/log/all.log
         -rw-r--r--  1 root  wheel  86 27 Feb 00:00 /var/log/all.log.0.gz
 
 >Fix:
 
 
 --- /usr/src/etc/newsyslog.conf.orig    Sat Feb 26 13:21:09 2000
 +++ /usr/src/etc/newsyslog.conf Sun Feb 27 20:10:16 2000
 @@ -9,7 +9,7 @@
  /var/log/maillog                       664  7     *    @T00  Z
  /var/log/sendmail.st                   664  10    *    168   B
  /var/log/messages                      664  5     100  *     Z
 -/var/log/all.log                       600  7     *    @T00  Z
 +#/var/log/all.log                      600  7     *    @T00  Z
  /var/log/slip.log                      600  3     100  *     Z
  /var/log/ppp.log                       600  3     100  *     Z
  /var/log/security                      600  10    100  *     Z
 
 
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 
 
 To Unsubscribe: send mail to majordomo@FreeBSD.org
 with "unsubscribe freebsd-bugs" in the body of the message
 
 
Responsible-Changed-From-To: freebsd-bugs->rwatson 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Feb 29 23:54:27 PST 2000 
Responsible-Changed-Why:  
This is Robert's invention. 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: ncbp@bank-pedersen.dk
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/17022: newsyslog.conf not in sync with syslog.conf - all.log entry should be commented 
Date: Wed, 01 Mar 2000 09:54:03 +0200

 On Sun, 27 Feb 2000 20:32:00 +0100, ncbp@pebbles.tele.dk wrote:
 
 > -/var/log/all.log                       600  7     *    @T00  Z
 > +#/var/log/all.log                      600  7     *    @T00  Z
 
 You can't do this without changing the comment in /etc/syslog.conf.
 Actually, the comment in syslog.conf already needs changing; it's
 misleading in that it can be read to imply that all.log doesn't need to
 exist.
 
 Ciao,
 Sheldon.
 

From: Robert Watson <robert@cyrus.watson.org>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: ncbp@bank-pedersen.dk, FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/17022: newsyslog.conf not in sync with syslog.conf - all.log entry should be commented 
Date: Wed, 1 Mar 2000 12:50:28 -0500 (EST)

 On Wed, 1 Mar 2000, Sheldon Hearn wrote:
 
 > The following reply was made to PR conf/17022; it has been noted by GNATS.
 > 
 > From: Sheldon Hearn <sheldonh@uunet.co.za>
 > To: ncbp@bank-pedersen.dk
 > Cc: FreeBSD-gnats-submit@FreeBSD.ORG
 > Subject: Re: conf/17022: newsyslog.conf not in sync with syslog.conf - all.log entry should be commented 
 > Date: Wed, 01 Mar 2000 09:54:03 +0200
 > 
 >  On Sun, 27 Feb 2000 20:32:00 +0100, ncbp@pebbles.tele.dk wrote:
 >  
 >  > -/var/log/all.log                       600  7     *    @T00  Z
 >  > +#/var/log/all.log                      600  7     *    @T00  Z
 >  
 >  You can't do this without changing the comment in /etc/syslog.conf.
 >  Actually, the comment in syslog.conf already needs changing; it's
 >  misleading in that it can be read to imply that all.log doesn't need to
 >  exist.
 
 The current arrangement worked fine, but the comment should have been
 expanded to indicate that the log file should be touch'd before it may be
 used.  By default, syslogd will not log to a file that does not already
 exist, and newsyslog will not create it.  As such, the newsyslog entry
 should be fine (non-existent files won't be rotated).  At least, this is
 my experience--were specific problems being experienced or was this a ``it
 just seems wrong''?
 
   Robert N M Watson 
 
 robert@fledge.watson.org              http://www.watson.org/~robert/
 PGP key fingerprint: AF B5 5F FF A6 4A 79 37  ED 5F 55 E9 58 04 6A B1
 TIS Labs at Network Associates, Safeport Network Services
 
 

From: "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>
To: Robert Watson <robert+freebsd@cyrus.watson.org>
Cc: Sheldon Hearn <sheldonh@uunet.co.za>,
	FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/17022: newsyslog.conf not in sync with syslog.conf - all.log entry should be commented
Date: Wed, 1 Mar 2000 20:53:19 +0100

 On Wed, Mar 01, 2000 at 12:50:28PM -0500, Robert Watson wrote:
 > On Wed, 1 Mar 2000, Sheldon Hearn wrote:
 > 
 > > The following reply was made to PR conf/17022; it has been noted by GNATS.
 > > 
 > > From: Sheldon Hearn <sheldonh@uunet.co.za>
 > > To: ncbp@bank-pedersen.dk
 > > Cc: FreeBSD-gnats-submit@FreeBSD.ORG
 > > Subject: Re: conf/17022: newsyslog.conf not in sync with syslog.conf - all.log entry should be commented 
 > > Date: Wed, 01 Mar 2000 09:54:03 +0200
 > > 
 > >  On Sun, 27 Feb 2000 20:32:00 +0100, ncbp@pebbles.tele.dk wrote:
 > >  
 > >  > -/var/log/all.log                       600  7     *    @T00  Z
 > >  > +#/var/log/all.log                      600  7     *    @T00  Z
 > >  
 > >  You can't do this without changing the comment in /etc/syslog.conf.
 > >  Actually, the comment in syslog.conf already needs changing; it's
 > >  misleading in that it can be read to imply that all.log doesn't need to
 > >  exist.
 > 
 > The current arrangement worked fine, but the comment should have been
 > expanded to indicate that the log file should be touch'd before it may be
 > used.  By default, syslogd will not log to a file that does not already
 > exist, and newsyslog will not create it.  As such, the newsyslog entry
 > should be fine (non-existent files won't be rotated).  At least, this is
 > my experience--were specific problems being experienced or was this a ``it
 > just seems wrong''?
 
 Seeing this, I guess it was an ``it just seems wrong'' kind of thing.
 The specific problem experienced was triggered because I (for what I
 thought would be consistency) touched the logfile myself.
 Your experience is right--the file won't get created and thus not
 rotated if you don't mess with the defaults.  I guess the PR can be
 closed--I'm probably the only one annoyed by what looks like an
 inconsistency, but in fact isn't   :-)
 
 Perhaps an addition to the comment in /etc/syslog.conf like
 ``uncomment this and touch /var/log/all.log to enable logging of all
 log messages in one file'' as pointed out by Sheldon Hearn, would be
 the best solution.
 
 >   Robert N M Watson 
 
 
 /Niels Chr.
 
 -- 
  Niels Christian Bank-Pedersen, NCB1-RIPE.
  Network Manager, Tele Danmark NET, IP-section.
 
  "Hey, are any of you guys out there actually *using* RFC 2549?"
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Robert Watson <robert+freebsd@cyrus.watson.org>
Cc: ncbp@bank-pedersen.dk, FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/17022: newsyslog.conf not in sync with syslog.conf - all.log entry should be commented 
Date: Mon, 13 Mar 2000 12:56:26 +0200

 On Wed, 01 Mar 2000 12:50:28 EST, Robert Watson wrote:
 
 > >  You can't do this without changing the comment in /etc/syslog.conf.
 > >  Actually, the comment in syslog.conf already needs changing; it's
 > >  misleading in that it can be read to imply that all.log doesn't need to
 > >  exist.
 > 
 > The current arrangement worked fine, but the comment should have been
 > expanded to indicate that the log file should be touch'd before it may be
 > used.
 
 Yes, that's what I was getting at. :-)
 
 Ciao,
 Sheldon.
 
State-Changed-From-To: open->closed 
State-Changed-By: asmodai 
State-Changed-When: Sun Oct 28 05:33:18 PST 2001 
State-Changed-Why:  
Fixed in v1.17 of syslog.conf 

Thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17022 
>Unformatted:
