In the HTTPD server's access log file Access_log, a large number of client access information is recorded, and by analyzing this information, the Web site's access can be understood in a timely manner. But because the Access_log file records too much information, look very inconvenient, so we use the Awstats analysis system to generate graphical interface view.
Awstats is an open source log analysis tool developed using the Perl language that can be used not only to analyze the access logs of Apache Web servers, but also to analyze log information for services such as Samba, VSFTPD, and IIS. With scheduled task services such as Crond, the growing log content can be analyzed on a regular basis.
The Awstats package can be downloaded from the Http://awstats.sourceforg.net Web site.
1. Install Awstats Package
Awstats Package installation is very simple, only need to unpack the package after deployment to the HTTPD server in the "/usr/local/" directory.
[Root@localhost/] #unzip Awstats-7.0.zip
[Root@localhost/] #mv awstats-7.0/usr/lcoal/awstats
2, for the site to be counted to establish a configuration file
When using the Awstats system, the system supports log files that count multiple Web sites, usually with the site name to distinguish between different sites. Therefore, before performing log file analysis, you need to establish a site statistics profile for each Web site, with the help of the awstats_configure.pl script provided by the Awstats program to simplify the creation process.
[Root@localhost/] #cd/usr/lcoal/awstats/tools/
[]root@localhost tools]#./awstats_configure.pl
It will then enter an interactive configuration process that will check the Awstats installation directory, httpd service configuration path, logging format, and other system environments, and prompts the user to specify the site name and set the profile path.
1 specifies the path to the httpd master configuration file