LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there a way to see how many times a file has be accessed via the internet? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-a-way-to-see-how-many-times-a-file-has-be-accessed-via-the-internet-893695/)

jim.thornton 07-25-2011 03:39 PM

Is there a way to see how many times a file has be accessed via the internet?
 
I'm looking to find out how many times a file has been displayed on the web. I've setup Google Analytics link tracking but I'm trying to figure out how many times BEFORE Google analytics was setup people clicked and viewed a pdf file.

Is there a script that I could run through the log files to find out how many times it has been served?

frieza 07-25-2011 03:47 PM

probably not, but if such information was logged it would be somewhere in /var/log/apache2 or /var/log/httpd depending on your distribution, more than likely in access_log, which you would search for relevant lines with grep


All times are GMT -5. The time now is 03:13 PM.