If you installed the Windows Scripting Host, but don't have Perl 
installed, this script might be more useful. It will add a date entry to 
the #Fields line, and to each entry, read any #Date lines that occur, 
and incrementing the date if the time is less than the previous entry.

In other words

#Date: 1999-03-14 14:03:29
#Fields: time c-ip cs-username cs-method cs-uri-stem sc-status sc-bytes
23:03:29 127.0.0.1 - GET /index.htm 200 1987
01:11:07 127.0.0.1 - GET /index.htm 200 1987

becomes 

#Date: 1999-03-14 14:03:29
#Fields: date time c-ip cs-username cs-method cs-uri-stem sc-status sc-bytes
1999-03-14 23:03:29 127.0.0.1 - get /index.htm 200 1987
#Date: 1999-3-15 00:00:00
1999-3-15 01:11:07 127.0.0.1 - get /index.htm 200 1987

To run it, open a DOS prompt, CD to your logfile directory 
(CD \WINNT\SYSTEM32\LOGFILES\W3SVCxx  usually)
and enter

CSCRIPT LOGFIX.VBS 990303

to fix EX990303.log. The script will create AN990303.log, so you still 
have the original if anything goes wrong. (make sure you have enough 
disk space).

This will fix your Weekly log files, provided there's enough information 
to tell when the date changes. 

Aengus



______________________________ Reply Separator _________________________________
Subject: Re: [analog-help] analog3.11  --  Win32 : startup problem
Author:  [EMAIL PROTECTED] at Internet
Date:    3/31/99 10:42 AM




Stephen Turner wrote:

> On Wed, 31 Mar 1999, Jeremy Wadsack wrote: 
> >
> > [Stephen, If you want to put this on the tools page I can send it to your 
too.]
> >
>
> Sure, I can do that.

It's attached. I've put it on the list for others to get at. I hope that isn't a
problem, it's really small.

The script workes by inserting a date field in the beginning of any W3C file (or
ones
with that kind of syntax) and putting whatever date is at the top of the file in
the
start of EVERY line. This only works for log files created on a daily basis.

--
Jeremy Wadsack
OutQuest Magazine
a Wadsack-Allen publication

Unknown data type

Reply via email to