IIS LogParser – Hits in last 7 Days
Posted May 18th, 2009 by Matt ShadboltHere’s a LogParser query I’ve written that will output the top hits for your website within the last 7 days. All you need to do is change the path of the log file location:
SELECTÂ COUNT(*) AS Hits, cs-uri-stem AS Page
FROM D:\LogFilePat*.*
WHERE
TO_DATE(Date) >= TO_DATE(SUB(SYSTEM_TIMESTAMP(), TO_TIMESTAMP(’01-07′, ‘MM-dd’)))
GROUP BY cs-uri-stem
ORDER BY Hits DESC
Tags: Hits last 7 days, LogParser
No ResponsesFiled under:Uncategorized




Leave a Reply