[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] How do you deal with stats?
Hi Rob -
> At early morning EST I turn off Apache just long enough to rotate the
> log files so I can parse them and feed the data to webalyzer which is
> what I use for my clients.
Have you looked at the "rotatelogs" program that comes with Apache?
If you do something like this:
TransferLog "| bin/rotatelogs logs/access_log 86400"
ErrorLog "| bin/rotatelogs logs/error_log 86400"
then apache will automatically create timestamped log file names and roll
them over every 86400 seconds (one day).
(Note: I showed relative pathnames above for clarity, but you may need to
use absolute pathnames.)
Larry Leszczynski
larryl@furph.com
--
furph, Inc. WWW/Unix/Windows Solutions 734-513-7763 (voice)
info@furph.com http://www.furph.com 734-513-7759 (FAX)