AWStats

From ISPWiki

Jump to: navigation, search

AWStats is an open source Web analytics reporting tool suitable for analyzing data from Internet services. AWStats parses and analyzes server log files, producing HTML reports. Data is visually presented within reports by tables and bar graphs.

ОGeneral information

ISPmanager automatically configure statistics collection, its analysis and reports. To enable/disable logs rotations and provide rotation period, go to the WWW domains module -> open the domain edit form -> the "Logs" tab (or "WWW domains" -> the "Logs" icon, if you use the old web-module).

To add a login and password for accessing statistical information, drill down to the user level and go to the "Protecting directory" module.

Technical details

Activating the analyzer for a domain will specify the start line in the file

  /usr/local/ispmgr/etc/rotate.conf

Example:

/var/www/user230/data/logs/example.com.access.log:10:day:day:/usr/local/ispmgr/sbin/awstats2.sh example.com __LOG__ /var/www/user230/data/www/example.com/webstat
where /var/www/user230/data/logs/example.com.access.log - site access log 
day - log analysis period
/usr/local/ispmgr/sbin/awstats2.sh - analyzer script 
/var/www/user230/data/www/example.com/webstat - directory where the html report will be placed 

Starting the log analyzer

  • Logs analyzer is automatically started with the command /usr/local/ispmgr/sbin/rotate в cron.
  • To start it manually, take the command from the file rotate.conf. Order: the analyzer script, log file, directory where the html report will be placed.
  /usr/local/ispmgr/sbin/awstats2.sh example.com /var/www/user230/data/logs/example.com.access.log /var/www/user230/data/www/example.com/webstat

Statistics is not collected

  • Make sure the file hard links are not corrupted.
  • Make sure the cron job in /usr/local/ispmgr/sbin/rotate is set to 00 - 01

See also logs rotation: [[1]]

Was this helpful? Yes | No
Views
Personal tools