Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 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.

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
1  
1  
and there is a grep port in unixutils(unxutils.sourceforge.net) –  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 at 14:56
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.