Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2001 14:15:31 -0400
From:      Jan Knepper <jan@digitaldaemon.com>
To:        Simon <simon@optinet.com>
Cc:        FreeBSD-ISP <freebsd-isp@freebsd.org>
Subject:   Re: Log file rotation with Apache.
Message-ID:  <3B13E743.2010407@digitaldaemon.com>

next in thread | raw e-mail | index | archive | help

--------------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

<html><head></head><body>I run webalizer once a day on low trafic domains and every hour on higher traffic domains or domains that require it.<br>
<br>
Actually, I had checked <a class="moz-txt-link-freetext" href="http://www.apache.org/">http://www.apache.org/</a>; and found that the apache
log can be "piped" into a log file handler. Just search for "log file rotation".<br>
<br>
I also figured that<br>
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.<br>
<br>
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....<br>
<br>
Jan<br>
<br>
<br>
<br>
Simon wrote:<br>
<blockquote type="cite" cite="mid:md5%3A64756D6D79206D657373616765206964"><font face="MS Shell Dlg" default="FACE"><font size="1" pointsize="8" default="SIZE"><br>
How often do you run webalizer? i doubt there is a way to<br>
rotate the log files without touching apache. It won't know<br>
what to do once the log file is gone. If you simply rename<br>
and then compress, apache will still append to the same<br>
file and will therefore corrupt it.<br><br>
-Simon<br><br>
--Original Message Text---<br><b>From:</b> Jan Knepper<br><b>Date:</b> Tue, 29 May 2001 13:18:10 -0400<br><br>
Well what I want to solve is the size of the log files.<br>
What I remember from the Webalizer docco is that it will scan .gz log files.<br>
I run Apache and Webalizer on the same .log files and have not seen any problems with that yet.<br><br>
What my current problem is is that I would like to rotate the apache log files without having to touch apache.<br><br>
Jan<br><br><br><br>
Simon wrote:<br><font face="Courier New">What we do is rename *.log to *.log.resolve, restart apache, run webalizer on *.log.resolve.<br><br>
-Simon<br><br>
On Tue, 29 May 2001 13:05:32 -0400, Jan Knepper wrote:<br><br>
Hi!<br><br>
Does any of you know about a "clean" way to do log file for Apache <br>
without disrupting webalizer?<br><br>
I have tried to just run newsyslog on them as I would like this best, <br>
but Apache seems to stop logging after the first trim. I know I can <br>
reset Apache with a "kill -1", but don't think that's exactly the way I <br>
would like to resolve that problem.<br><br>
Thanks!<br>
Jan<br><br><br>
To Unsubscribe: send mail to <a class="moz-txt-link-abbreviated" href="mailto:majordomo@FreeBSD.org">majordomo@FreeBSD.org</a><font color="000000" default="COLOR"><br>
with "unsubscribe freebsd-isp" in the body of the message<br><br><font face="MS Shell Dlg" default="FACE"><br><font face="Courier New"><br><br><br><br>
To Unsubscribe: send mail to <a class="moz-txt-link-abbreviated" href="mailto:majordomo@FreeBSD.org">majordomo@FreeBSD.org</a><br>
with "unsubscribe freebsd-isp" in the body of the message<br><br><br><br><font face="MS Shell Dlg" default="FACE"><br><br><br><font color="000000" default="COLOR"><br></font></font></font></font></font></font></font></font></blockquote>
  <br>
</body></html>
--------------090804080808040507050203--


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




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