Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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.

share|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
and there is a grep port in unixutils( – Zypher Feb 2 '10 at 3:45
I believe that for large files these figures can be notably skewed (partial downloads, incomplete downloads, etc.). – jjmontes Jan 20 '14 at 14:56

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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