From owner-freebsd-questions@FreeBSD.ORG Thu Oct 7 18:25:53 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 344DB10656C1 for ; Thu, 7 Oct 2010 18:25:53 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.41]) by mx1.freebsd.org (Postfix) with ESMTP id 0F3098FC15 for ; Thu, 7 Oct 2010 18:25:52 +0000 (UTC) Received: (qmail 31090 invoked from network); 7 Oct 2010 18:25:52 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 7 Oct 2010 18:25:52 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 7708B5083A; Thu, 7 Oct 2010 14:25:50 -0400 (EDT) From: Lowell Gilbert To: Joe Auty References: <4CAE02AB.1090009@netmusician.org> Date: Thu, 07 Oct 2010 14:25:50 -0400 In-Reply-To: <4CAE02AB.1090009@netmusician.org> (Joe Auty's message of "Thu, 07 Oct 2010 13:26:03 -0400") Message-ID: <4439sh507l.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: newsyslog.conf and Apache log files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2010 18:25:53 -0000 Joe Auty 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.