From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 15:22:32 2008 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 E38C1106567F for ; Wed, 20 Aug 2008 15:22:32 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from relay.lc-words.com (relay.lc-words.com [62.121.130.110]) by mx1.freebsd.org (Postfix) with ESMTP id 8FE928FC2A for ; Wed, 20 Aug 2008 15:22:32 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from localhost (localhost [127.0.0.1]) by relay.lc-words.com (Postfix) with ESMTP id 6BCE7B803C; Wed, 20 Aug 2008 17:22:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lcwords.com; s=mainlcwords; t=1219245751; bh=fez6j9FRTf+9CgC4hfl0hv3Nt7hRsUnxwV+ 9AktDl1s=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=U 0pnXGaAKWx9DGPOGAC6QgbpyFboKiNQxfjIqMOsQTWKl/t34LEnoojodv9h44M1PAti SWMuNIhgy062d87kKEZo5ykRweGCMX5LiTcD1BYOKRN8WknL8Ve+TxWpWBdOQOtFT2q QwINQeQRvRZKsdpaELbQLEujcDKQMhoXyWeo= Received: from relay.lc-words.com ([127.0.0.1]) by localhost (relay.lc-words.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 56417-05; Wed, 20 Aug 2008 17:22:31 +0200 (CEST) Received: from [127.0.0.1] (77-254-177-7.adsl.inetia.pl [77.254.177.7]) (Authenticated sender: z.szalbot@lcwords.com) by relay.lc-words.com (Postfix) with ESMTPA id 23000B8026; Wed, 20 Aug 2008 17:22:29 +0200 (CEST) Message-ID: <48AC36B2.8030909@lcwords.com> Date: Wed, 20 Aug 2008 17:22:26 +0200 From: Zbigniew Szalbot User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Rudi Kramer - MWEB References: <48AC0A7D.80207@lcwords.com> <39DC135F7F0571489196E0B6F5D58B4A03B46071@MWBEXCH.mweb.com> In-Reply-To: <39DC135F7F0571489196E0B6F5D58B4A03B46071@MWBEXCH.mweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080819-0, 2008-08-19), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard Cc: User Questions Subject: Re: logrotate question 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: Wed, 20 Aug 2008 15:22:33 -0000 Rudi Kramer - MWEB pisze: >> Zbigniew Szalbot >> Sent: Wednesday, August 20, 2008 2:14 PM >> To: User Questions >> Subject: logrotate question >> >> Dear all, >> >> I am trying to use logrotate from ports and I am getting the following >> error. Can anyone offer any insight? > > Hi Zbigniew, > > I started investigating logrotate but someone put me on to newsyslog > instead. > Newsyslog is part of the FreeBSD and amazing simple to setup: > > 1) vi /etc/newsyslog.conf > > 2) Add the following line: > > /var/log/httpd/*.log www:www 644 60 * @T00 BJG > /var/run/httpd.pid > > I would recommend reading man pages newsyslog newsyslog.conf for more > info. > > Rudi Thanks for your post! Well, I really like newsyslog but I miss some features in it. 1/ rotating based on time and size 2/ saving files with timestapms in their names 3/ moving rotated messages to another folder This is why I am trying logrotate. Thanks! Zbigniew Szalbot