Hi Mrcoffee365
Thx alot for that, the first part should definately work.
However, do you perhaps know how I can modify the .conf fil to include ALL the log files I already have on file?
I'd hate to have to run that command 180 time manually ( I've basically got 180 days worth of log files that I need AWSTATS to process...)
Main Topics
Browse All Topics





by: mrcoffee365Posted on 2007-04-10 at 11:57:20ID: 18884600
AWStats does not read the default IIS log format without some configuration. Put the following Log format in your awstats awstats.model.conf file:
/LogFiles/ W3SVC3/ex% YY-24%MM-2 4%DD-24.lo g"
-bin\awsta ts.pl -config=mymodel -LogFile="C:/WINNT/system3 2/LogFiles /W3SVC3/ex 061123.log " -update
# Use this LogFormat for limited IIS log (default log format from IIS 6)
LogFormat="date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-bytes"
Don't put line break in.
A format like this works well for IIS logs:
LogFile="C:/WINNT/system32
When you run awstats, you can also specify which file you want it to run on (as long as it is where you specified for the LogFile location above):
perl c:\awstats-6.5\wwwroot\cgi
Again, no line breaks.