From owner-freebsd-questions@FreeBSD.ORG Thu Oct 7 19:31:38 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 974F8106564A for ; Thu, 7 Oct 2010 19:31:38 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from mail.netmusician.org (dorian.netmusician.org [66.244.95.101]) by mx1.freebsd.org (Postfix) with ESMTP id 5B7AD8FC1A for ; Thu, 7 Oct 2010 19:31:38 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by mail.netmusician.org (Postfix) with ESMTP id 27880B8C1; Thu, 7 Oct 2010 15:31:37 -0400 (EDT) X-Virus-Scanned: amavisd-new at netmusician.org Received: from mail.netmusician.org ([127.0.0.1]) by localhost (dorian.netmusician.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hStWFNwtUbVv; Thu, 7 Oct 2010 15:31:36 -0400 (EDT) Received: from Shakti.local (c-67-176-145-181.hsd1.in.comcast.net [67.176.145.181]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.netmusician.org (Postfix) with ESMTPSA id 5818CB8FA; Thu, 7 Oct 2010 15:31:35 -0400 (EDT) Message-ID: <4CAE200F.9070202@netmusician.org> Date: Thu, 07 Oct 2010 15:31:27 -0400 From: Joe Auty User-Agent: Postbox 2.0.0 (Macintosh/20100928) MIME-Version: 1.0 To: Lowell Gilbert References: <4CAE02AB.1090009@netmusician.org> <4439sh507l.fsf@be-well.ilk.org> In-Reply-To: <4439sh507l.fsf@be-well.ilk.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 19:31:38 -0000 Lowell Gilbert wrote: > 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. 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 joe@netmusician.org