Apache - Find the number of requests for a file -
so here's problem: want find out how many times file(or files) has been viewed(or downloaded).
can kind of info apache logs, , if yes how?
with apache access logs able identify whether particular resource accessed or not along response code. have count number of such accesses resulted in success response. this, may have grep previous logs. don't think there straight forward way this. if logs huge, consider map , reduce framework achieve this.
another option have app server delivers resource using controller, , persist count in database, inefficient.
Comments
Post a Comment