I wrote this powershell script to save some time importing log files into
AWStat on WIndows. Basically, it homogonizes IIS logs of varying field types
into a single format.
Hope I didn't reinvent the wheel, but I couldn't find anything like it....
i cant understand this plz explain about it...
If your IIS log format has these fields:
#Fields: date time s-ip cs-method cs-uri-stem
and you later change the log format to include extra fields:
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username
My script will convert old logs so that they match the new format.
Probably easier to just show it.
This shows 3 modifications applied to the same log file. Each modification is
made by specifying the desired fields.
Sorry, that image did not scale.
Here is the link: