Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
Download Metrics
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Capturing Usage== Eprints uses the Apache web server and mod_perl (an accelerator for Perl CGI scripts). mod_perl provides hooks to the logging and control features of the Apache server. One of these hooks is to the access logging function. A ''log handler'' is registered with Apache by using the ''[http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler PerlLogHandler]'' pragma e.g. <code>PerlLogHandler EPrints::Apache::LogHandler</code> This handler is called after a response has been generated by the web server (i.e. in response to requests coming in from web clients). In the initial implementation we are only interested in requests to eprint objects. This ignores requests to static content (e.g. the home page), searches and user-specific content (e.g. depositing processes). This is because our current requirements are to capture usage to determine download metrics for objects contained in a repository, rather than analysing how a repository is used. For the remainder of this section we will use the following example request (as you would otherwise see in an Apache access log file): <code>127.0.0.1 - - [25/May/2007:13:07:24 +0100] "GET /12614/01/Semantic_Web_Revisted.pdf HTTP/1.1" 200 130951 "http://www.w3.org/2001/sw/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"</code> The pertinent parts of this entry are: {| border=1 class="wikitable" |+Fields in a HTTP request. |- !field !example |- |requesting host |127.0.0.1 |- |date/time of request (by server time) |25/May/2007:13:07:24 +0100 |- |page requested |/12614/01/Semantic_Web_Revisted.pdf |- |HTTP response code (200 is 'ok') |200 |- |referring web page |http://www.w3.org/2001/sw/ |- |user's web browser (or web crawler id) |Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) |} In the Eprints log handler any non-200 ''HTTP response code'' requests are ignored i.e. any errors or redirects. A simple heuristic is applied to separate out the requests into three potential types: non-eprint requests, eprint abstract requests and full-text requests. This is based on the ''page requested'' field: {| border=1 class="wikitable" |+Parts of a page request URL. |- !align="center" |eprint identifier !align="center" |document identifier !align="center" |file requested |- |/12614/ |/01/ |Semantic_Web_Revisted.pdf |} Requests without an eprint identifier part are ignored. Requests with no document identifier part are defined as abstract requests. Requests with both eprint and document identifier parts are defined as full-text requests. A simple filter is implemented in the capture code to handle requests to multi-file documents (e.g. HTML pages with inlined images). Any full-text requests where the referring web page (see above) is also a request to the same full-text are ignored. Assuming the referring web page is correctly supplied by the web client this will count requests to any part of a document, but ignore multiple requests resulting from complex media.
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)