** Reply to note from Zdenek Wagner - Ustav chemickych procesu AV wagner at cesnet.cz Tue, 20 Feb 2001 14:29:44 +0100 (CET) > > Voytek Eyment talks about a program named rotatelog.exe (02-jun-2000) > > > This program rotates log files at midnight GMT and the file name contains > time in seconds (unix-like). I have a modified version which is more > flexible. It can rotate at any time and the file name can be customized. I modified version ? PLEASE PLEASE ! I use the 'standard' rotatelogs from standard Apache/2, it's i think ? under utilities ? it works, as ZW says, at midnight GMT, great 10am/11am here... I have a series of CMDs that deal with the 10am/11am logs; and, from memory... parse them into virtual domains, do reverse lookup, copy to each relevant domain, and then make me cup of tea to clam me down.... *if* anyone wants a copy, youre welcome.... it's very messy...... but works.... it does need some publicly available utilies, as well as: ftp.sbt.net.au \apache unzip -l ApacheUtils.zip Archive: ApacheUtils.zip Length EAs ACLs Date Time Name -------- --- ---- ---- ---- ---- 2038 8704 0 22-02-01 10:36 ute/logsgzipped.cmd 3861 17776 0 22-02-01 10:35 ute/logarchived.cmd 9500 8256 0 23-06-00 22:09 ute/uts2file.cmd 441 736 0 19-06-00 22:02 ute/logpadded.cmd 1230 4960 0 24-06-00 23:34 ute/LogSplit.CMD -------- ----- ----- ------- 17070 40432 0 5 files [K:\ute\cron]type daily11.cmd rem execute daily at 11:00am rem gzip web logs daily on 19991025 16:43:00 CALL \ute\logarchived.cmd CALL \ute\logsgzipped.cmd ----- /* this logarchived.cmd processes Apache/2 web servers daily logs */ /* we 1st need to rename logs from *nix seconds to dd-mm-yy; sort and split into virtual host logs, resolve IPs into host names finally GZIP, afterwards, we can run Analog/Webalizer/http-analyze, etc */ /* to be run daily after midnight ? */ /* must have uts2file, LogPadded and LogSplit on path */ /* this GZIPlogs.cmd Apache web servers daily logs */ /* to be run daily after midnight */ /* we need to GZIP YESTERDAY's web logs; then move to individual target dirs */ Voytek Eymont SBT Information Systems Pty Ltd http://www.sbt.net.au/links/