newsyslog.conf and Apache log files
Joe Auty
joe at netmusician.org
Thu Oct 7 19:31:38 UTC 2010
Lowell Gilbert wrote:
> Joe Auty <joe at 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.
Aha! That makes sense...
What alternatives are there then so that I don't have to type in log
file paths for each of my virtually hosted domains? How about:
/var/log/httpd/*_log
would this work?
--
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful,
professional, custom designed, career-essential websites that are easy
to maintain and to integrate with popular social networks.
www.netmusician.org <http://www.netmusician.org>
joe at netmusician.org <mailto:joe at netmusician.org>
More information about the freebsd-questions
mailing list