Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Oct 2010 14:25:50 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Joe Auty <joe@netmusician.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: newsyslog.conf and Apache log files
Message-ID:  <4439sh507l.fsf@be-well.ilk.org>
In-Reply-To: <4CAE02AB.1090009@netmusician.org> (Joe Auty's message of "Thu, 07 Oct 2010 13:26:03 -0400")
References:  <4CAE02AB.1090009@netmusician.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Joe Auty <joe@netmusician.org> writes:

> Hello,
>
> I have the following entry for dealing with my Apache log files:
>
> /var/log/httpd/*             644  2     *  $M1D0 GBJ   
> /var/run/httpd.pid 30
>
>
> Unfortunately, this has created these big long log files such as the
> following:
>
> httpderror_log.2.bz2.2.bz2.2.bz2.1.bz2.1.bz2.1.bz2.0.bz2
>
> How can I prevent these dumb log file names from being created?

Don't use wildcards in newsyslog.conf.

What's happening is "httperror_log.2.bz2" gets rotated into
"httperror_log.2.baz2.1.bz2", because it matches the filename 
glob you specified.  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4439sh507l.fsf>