Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!news.msfc.nasa.gov!news.larc.nasa.gov!maui.cc.odu.edu!news From: jonathan@cc.odu.edu (Jonathan Sturges) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How do I delete Apache Log Files Date: Tue, 30 Jul 96 03:21:31 GMT Organization: Old Dominion University Lines: 18 Message-ID: <4tjv5l$1cl@maui.cc.odu.edu> References: <4tj0ji$ooo@adcmail.adc.com> NNTP-Posting-Host: ppp.cc.odu.edu Keywords: Apache Log Files X-Newsreader: News Xpress Version 1.0 Beta #4 In article <4tj0ji$ooo@adcmail.adc.com>, mad@adc.com (Michael A. Dorin) wrote: >I know that this has been posted before, but I have somehow >lost the information. > >How does one delete apache log files? Hmmm, I'm trying to remember if Apache logs via syslog. If it does, you should really use 'newsyslog'. It's a simple but highly useful; it's distributed with NetBSD (not sure about FreeBSD), but you should be able to find it on the net. If Apache logs by itself (ie, without syslog), try using 'rotz'. Rotz is a Perl script that rotates logs, keeping the number you specify. It will gzip 'em, and even HUP a process if need be. I don't have it in front of me, but if you need a copy of rotz, let me know and I'll send you one. good luck, Jonathan