What is an easy way to count downloads of an image file so that I can count how many times my Craigslist ad is read to see how often that converts to a hit on my site? This is for windows-7 running Apache v2.2.

Ideal would be to create a webpage on my server that is for internal consumption that lists the number of page hits.

link|improve this question

feedback

3 Answers

up vote 1 down vote accepted

You could run something like awstats against your logs. Or just do a simple grep (find) on the log and count the entries for that file name.

link|improve this answer
This is not Unix, so I don't think grep is an option on windows. – WilliamKF Feb 2 '10 at 3:21
1  
1  
and there is a grep port in unixutils(unxutils.sourceforge.net) – Zypher Feb 2 '10 at 3:45
feedback

You can use PowerShell to search for a certain string in a logfile.

link|improve this answer
feedback

awstats is a good log file analyser. Otherwise you can grep the logs by hand.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.