From owner-freebsd-stable Thu Aug 2 10:24: 1 2001 Delivered-To: freebsd-stable@freebsd.org Received: from forkbomb.martini.nu (forkbomb.martini.nu [204.118.247.250]) by hub.freebsd.org (Postfix) with SMTP id 92C5D37B401 for ; Thu, 2 Aug 2001 10:23:58 -0700 (PDT) (envelope-from reich@forkbomb.martini.nu) Received: (qmail 67968 invoked by uid 1000); 2 Aug 2001 17:23:41 -0000 Date: Thu, 2 Aug 2001 10:23:41 -0700 From: Mahlon Smith To: modaya72@hotmail.com Cc: freebsd-stable@freebsd.org Subject: Re: Apache Log question! Message-ID: <20010802102341.A65352@internetcds.com> References: <3B673784.11969509@whistle.com> <3B686488.6FF5FCFE@eboa.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B686488.6FF5FCFE@eboa.com>; from "roelof@eboa.com" on Wed, Aug 01, 2001 at 10:20:24PM Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Why wouldn't you just use the tools already available on your system? % cat /etc/newsyslog.conf # Rotate and compress web logs at 10 megs, compress, and HUP apache. # Keep 15 old logs around. /var/log/httpd.log 644 15 10000 * Z /var/run/httpd.pid 1 Also, this really should have gone to freebsd-questions. -- Mahlon Smith System Administrator InternetCDS http://www.internetcds.com On Wed, Aug 01, 2001, Roelof Osinga wrote: > Evan Oldford wrote: > > > > Kashyap Kumar wrote: > > > > > > Hi, > > > > > > Can anybody help me to rotate my apache logs in /var/log directory. How can > > > I do that with syslog? > > > > > > help very much appriciated > > > > > > /mn > > > > http://www.freebsddiary.org/rotatelogs.php has a great example... > > Take a look at .../ports/sysutils/cronolog, does a nice job although > it keeps a lot of processes around. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message