Date: Tue, 29 May 2001 13:30:40 -0400 From: "Simon" <simon@optinet.com> To: "Jan Knepper" <jan@digitaldaemon.com> Cc: "FreeBSD-ISP" <freebsd-isp@freebsd.org> Subject: Re: Log file rotation with Apache. Message-ID: <20010529172629.7CA1837B443@hub.freebsd.org> In-Reply-To: <3B13D9D2.5060100@digitaldaemon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--_=_=_=IMA.BOUNDARY.HTML_29527792=_=_=_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --_=_=_=IMA.BOUNDARY.HTML_29527792=_=_=_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit <HTML> <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 majordomo@FreeBSD.org<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 majordomo@FreeBSD.org<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> </HTML> --_=_=_=IMA.BOUNDARY.HTML_29527792=_=_=_-- 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?20010529172629.7CA1837B443>