AWStats and Time Taken to serve the Request

awstatsiis-6log-files

I have several IIS 6 web servers I manage and I turn on the time-taken field in the logs. I use AWStats to generate various reports from the log data. One of my developer counterparts has recently asked me to provide a report based on the Time-Taken data. She is specifically looking for top 20 pages sorted by average time-taken, plus min and max time-takens.

I am thinking that I can achieve this by creating an ExtraSection in my AWStats config file. Is this feasible? Does anyone have any config samples they are willing to share? Any pointers are greatly appreciated.

Best Answer

It'll be very difficult to know how long the entire page takes to load. Not impossible, but difficult. You will need 'group' by referrals.

For each PHP/ASP/Whatever/HTML page that is output, then find all the requests immediately after it that have the referrer of the just-requested page, for that IP address. Keep going until that IP requests another HTML page. Repeat and rinse.

As for how to actually do this in AWStats, I honestly don't know. You might need to do up a script or something to parse the logs manually.