Virtual Private Server User Guide
Log Files and Statistics Reports
Analog Web Statistics
Analog is a great statistical analysis program that is preinstalled on your VPS
server. Analog analyzes your Web server logs and creates easy to read HTML
reports that can be viewed through a Web browser.
Analog has many advantages over similar programs:
It s free to you.
It s very fast.
It s easy to run.
It reports information from all four log files (referrer, access, agent, and error).
It can produce reports in 14 different languages, and three output formats.
It s very flexible. There are over 180 options available for customized reports.
It produces an attractive output in HTML format, viewable by any Web
browser.
For an introduction to the type of reporting analog can produce, please visit the
following URL:
http://www.statslab.cam.ac.uk/~sret1/stats/statsanal.html
Using Analog with Your Main Domain
To generate analog statistics reports for your server s main domain, log into your
server and enter the analog command at the shell prompt, as shown below:
> analog +g/usr/local/www/vhosts/example.ext/logs/analog.cfg
As soon as you issue the above command, analog produces reports in the
Webstats directory of the site. You can then view the resulting reports at the
following URL, where example.ext is your actual domain name:
http://www.
example.ext
/webstats/
You will need to run the program every time you want to create an updated report,
or you can use the cron facility to automatically run the program at a specified
interval.
Using Analog with Virtual Hosts
If you have added virtual hosts to your server with the vaddvhost command, you
can use analog to view statistics for those sites as well. The vaddvhost program
creates a separate analog configuration file for each virtual host, which can be
found in the host s /www/vhosts/domain.ext/logs directory.
To generate statistics reports for a virtual host on your server, log into your server
and enter the following command at your shell prompt, where domain.ext is the
actual domain name of the virtual host:
> analog +g/www/vhosts/example.com/logs/analog.cfg
Technical Training Department
August 2004
7 2