Chris Keene. Technical Development Manager, University of Sussex Library, UK.
Provide basic usage statistics, for individual eprints and the whole system. Other tools and systems are available to provide more sophisticated solutions.
Before you start
- Find out where your logs are, and if they are being 'rotated'
- Find or create a directory where static html files can be places and accessible by the web server (we will use /home/eprints/htdocs/stats/)
- Consider setting up Apache to use different log files for different eprint archives, and for non-eprints requests
- Install analog (http://www.analog.cx). Most linux systems will have a package available for this.
- Download the gzip file containing the config files and perl scripts.
- unpack in to a directory, e.g. /home/eprints/analog/
- Ensure that the two perl scripts and the shell script and executable by you (e.g. chmod 744 *.pl)
- edit 'general.cfg' you will need to:
- Replace the fictional eprints users (foobar and mit.edu) with your own org
BASEURL http://eprints.mit.edu HOSTURL http://eprints.mit.edu HOSTNAME "Foobar Research Online" REFREPEXCLUDE http://eprints.mit.edu/* REFREPEXCLUDE http://eprints.lib.mit.edu/* REFSITEEXCLUDE http://eprints.mit.edu/* REFSITEEXCLUDE http://eprints.lib.mit.edu/* [Further down you may want to edit the SUBDOMAIN]
- Specify the location of the log file(s)
- You may need to uncomment and set up the DNS cache near the bottom (see http://www.analog.cx for info)