From owner-freebsd-questions@FreeBSD.ORG Thu Oct 7 19:30:07 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 0F5F41065670 for ; Thu, 7 Oct 2010 19:30:07 +0000 (UTC) (envelope-from viper@fx-services.com) Received: from monsoon.fx-services.com (monsoon.fx-services.com [62.20.50.90]) by mx1.freebsd.org (Postfix) with ESMTP id C5D308FC23 for ; Thu, 7 Oct 2010 19:30:06 +0000 (UTC) Received: from 212-107-148-22.customers.ownit.se ([212.107.148.22] helo=hurricane.sto.fxs) by monsoon.fx-services.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1P3vuS-0003Tp-BX for freebsd-questions@freebsd.org; Thu, 07 Oct 2010 21:13:44 +0200 Message-ID: <4CAE1BE3.4080406@fx-services.com> Date: Thu, 07 Oct 2010 21:13:39 +0200 From: Robin Vleij User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4CAE02AB.1090009@netmusician.org> In-Reply-To: <4CAE02AB.1090009@netmusician.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Mail is Virus Free, Monsoon MailGateway 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:30:07 -0000 On 10/7/10 7:26 PM, Joe Auty wrote: Hi Joe, > 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? Like Lowell wrote, don't use wildcards in newsyslog.conf. :-) I just react to this, because I spent quite some time after a storage change on why my machine was hanging at bootup on the newsyslog "trimming and creating logfiles" line. There was no good Google result that pointed me in the direction, hence my post now. In my case I made the same mistake as you on my Asterisk logfiles (which also don't have any extention). So after troubleshooting NFS and filesystem problems, I ran truss on newsyslog and found out about the nice tree newsyslog had built on my Asterisk logfiles. It wasn't hanging afterall, it was quite busy. :-) I just wrote three lines with the three filenames I wanted to rotate and since then it's fine. /Robin