Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2001 20:22:15 -0400
From:      "Marius Kirschner" <marius@agoron.com>
To:        "Jonathan Chen" <jonathan.chen@itouch.co.nz>
Cc:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   RE: rotating web logs
Message-ID:  <NEBBKGPPOLDBPJPLMKDIMEOIGEAA.marius@agoron.com>
In-Reply-To: <20010807092006.C59676@itouchnz.itouch>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks to all who let me know about the newsyslog command. That's what I was
looking for...

---Marius

> -----Original Message-----
> From: Jonathan Chen [mailto:jonathan.chen@itouch.co.nz]
> Sent: Monday, August 06, 2001 5:20 PM
> To: Marius Kirschner
> Cc: FreeBSD Questions
> Subject: Re: rotating web logs
>
>
> On Mon, Aug 06, 2001 at 03:48:01PM -0400, Marius Kirschner wrote:
> > I was wondering, what do people use to rotate the apache web logs?  I
> > noticed there a "rotatelogs" command but this one doesn't work from the
> > command line apparenly and I'd like to schedule a cron job to do that.
> > Thanks,
>
> The base system has a utility called newsyslog(8) that works fine.
> Edit /etc/newsyslog.conf and add entries something like:
>
>     /var/log/httpd-access.log       644  5     200  *      -
> /var/run/httpd.pid
>     /var/log/httpd-error.log        644  5     200  *      -
> /var/run/httpd.pid
>
> to it.
> --
> Jonathan Chen <jonathan.chen@itouch.co.nz>
> ----------------------------------------------------------------------
>                                       Opportunities are seldom labeled
>
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBKGPPOLDBPJPLMKDIMEOIGEAA.marius>