From owner-freebsd-isp Tue May 29 11:17:14 2001 Delivered-To: freebsd-isp@freebsd.org Received: from digitaldaemon.com (digitaldaemon.com [63.105.9.34]) by hub.freebsd.org (Postfix) with SMTP id 6348837B423 for ; Tue, 29 May 2001 11:17:07 -0700 (PDT) (envelope-from jan@digitaldaemon.com) Received: (qmail 66893 invoked from network); 29 May 2001 18:16:08 -0000 Received: from unknown (HELO digitaldaemon.com) (192.168.0.73) by digitaldaemon.com with SMTP; 29 May 2001 18:16:08 -0000 Message-ID: <3B13E743.2010407@digitaldaemon.com> Date: Tue, 29 May 2001 14:15:31 -0400 From: Jan Knepper User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20010131 Netscape6/6.01 X-Accept-Language: en MIME-Version: 1.0 To: Simon Cc: FreeBSD-ISP Subject: Re: Log file rotation with Apache. Content-Type: multipart/alternative; boundary="------------090804080808040507050203" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --------------090804080808040507050203 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I run webalizer once a day on low trafic domains and every hour on higher traffic domains or domains that require it. Actually, I had checked http://www.apache.org/ and found that the apache log can be "piped" into a log file handler. Just search for "log file rotation". I also figured that newsyslog can be used in some way since newsyslog is able to send a signal to a process after completion all it would need to so send a "kill -1" to the apache process it just trimmed a log file for. I just wondered if anyone else had battled this problem as I would think almost all of us here are running apache and sooner or later will have to take care of the log files.... Jan Simon wrote: > > How often do you run webalizer? i doubt there is a way to > rotate the log files without touching apache. It won't know > what to do once the log file is gone. If you simply rename > and then compress, apache will still append to the same > file and will therefore corrupt it. > > -Simon > > --Original Message Text--- > From: Jan Knepper > Date: Tue, 29 May 2001 13:18:10 -0400 > > Well what I want to solve is the size of the log files. > What I remember from the Webalizer docco is that it will scan .gz log > files. > I run Apache and Webalizer on the same .log files and have not seen > any problems with that yet. > > What my current problem is is that I would like to rotate the apache > log files without having to touch apache. > > Jan > > > > Simon wrote: > What we do is rename *.log to *.log.resolve, restart apache, run > webalizer on *.log.resolve. > > -Simon > > On Tue, 29 May 2001 13:05:32 -0400, Jan Knepper wrote: > > Hi! > > Does any of you know about a "clean" way to do log file for Apache > without disrupting webalizer? > > I have tried to just run newsyslog on them as I would like this best, > but Apache seems to stop logging after the first trim. I know I can > reset Apache with a "kill -1", but don't think that's exactly the way I > would like to resolve that problem. > > Thanks! > Jan > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > > > > > > > --------------090804080808040507050203 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I run webalizer once a day on low trafic domains and every hour on higher traffic domains or domains that require it.

Actually, I had checked http://www.apache.org/ and found that the apache log can be "piped" into a log file handler. Just search for "log file rotation".

I also figured that
newsyslog can be used in some way since newsyslog is able to send a signal to a process after completion all it would need to so send a "kill -1" to the apache process it just trimmed a log file for.

I just wondered if anyone else had battled this problem as I would think almost all of us here are running apache and sooner or later will have to take care of the log files....

Jan



Simon wrote:

How often do you run webalizer? i doubt there is a way to
rotate the log files without touching apache. It won't know
what to do once the log file is gone. If you simply rename
and then compress, apache will still append to the same
file and will therefore corrupt it.

-Simon

--Original Message Text---
From: Jan Knepper
Date: Tue, 29 May 2001 13:18:10 -0400

Well what I want to solve is the size of the log files.
What I remember from the Webalizer docco is that it will scan .gz log files.
I run Apache and Webalizer on the same .log files and have not seen any problems with that yet.

What my current problem is is that I would like to rotate the apache log files without having to touch apache.

Jan



Simon wrote:
What we do is rename *.log to *.log.resolve, restart apache, run webalizer on *.log.resolve.

-Simon

On Tue, 29 May 2001 13:05:32 -0400, Jan Knepper wrote:

Hi!

Does any of you know about a "clean" way to do log file for Apache
without disrupting webalizer?

I have tried to just run newsyslog on them as I would like this best,
but Apache seems to stop logging after the first trim. I know I can
reset Apache with a "kill -1", but don't think that's exactly the way I
would like to resolve that problem.

Thanks!
Jan


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






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








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