Date: Tue, 18 May 1999 07:13:21 -0700 (PDT) From: Roger Marquis <marquis@roble.com> To: freebsd-isp@FreeBSD.ORG Subject: Re: Web Statistics break up program. Message-ID: <Pine.GSO.3.96.990517151403.24114A-100000@roble2.roble.com> In-Reply-To: <199905172017.VAA08078@post.mail.areti.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This will create an archived logfile (http.site.May_1999) and erase the original without needing to kill -1 the httpd. #!/bin/sh - LOGDIR=/var/log ARCDIR=/var/log/oldlogs DAY=`date | awk '{ OFS="_" ;print $2,$6}' ` for log in $LOGDIR/http* ; do cp $log $ARCDIR/${log}.${DAY} chmod 440 $ARCDIR/${log}.${DAY} cp /dev/null $log done -- Roger Marquis Roble Systems Consulting http://www.roble.com/ > We currently use Analog to generate our stats, but now customers are asking > for weekly, or monthly stats to be generated, rather that just one accumulative > lot. Is there anyway to automatically break up the stats, and have them to put into > its own html stats file. > > For example: > > April01-07-1999.html > April08-14-1999.html > > etc etc. 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?Pine.GSO.3.96.990517151403.24114A-100000>