Previously, I used GoogleAnalytics to analyze the website. I felt that it was not very good for users to make one more request, so I analyzed and counted apachelog. It took about an hour to install and test awstats, which was better than expected. Under CentOS6.3, AWStats + GeoIP allows you to view the Website access locations at http://www.linuxidc.com/linux/2013-06/85984.htmnginxlog analysis awstats=jawst
Previously, I used Google Analytics to analyze the website. I felt that it was not very good for users to make one more request, so I analyzed and analyzed apache log by myself. It took about an hour to install and test awstats, which was better than expected.
CentOS 6.3 AWStats + GeoIP to view the Website access geographic http://www.linuxidc.com/Linux/2013-06/85984.htm
Nginx log analysis AWStats + JAWStats installation configuration http://www.linuxidc.com/Linux/2013-06/85567.htm
Classical log analysis tools-AWStats http://www.linuxidc.com/Linux/2012-12/77080.htm
AWStats log system profile and error induction http://www.linuxidc.com/Linux/2012-12/75657.htm
Analyze website logs with AWStats-http://www.linuxidc.com/Linux/2012-11/74431.htm with powerful log analysis tools
The server is Fedora and is quickly installed with yum.
[root@athena~]# yum install awstats
Use the default installation method. awstats. conf already exists under the/etc/httpd/conf. d/directory. If not, copy a previous
# cp /usr/share/awstats/tools/httpd_conf /etc/httpd/conf.d/awstats.conf
Edit the/etc/httpd/conf. d/awstats. conf file. The default file is:
Options None AllowOverride None Order allow,deny Allow from 127.0.0.1
For an external server, change 127.0.0.1 to all.
[root@athena~]# cp /etc/awstats/awstats.module.conf /etc/awstats/awstats.broncho.cn.conf
Edit/etc/awstats/awstats.broncho.cn. conf and modify the following three items:
SiteDomain="broncho.cn"
LogFile="/var/log/httpd/broncho.cn_access_log.%YYYY-0%MM-0%DD-0"
Lang="cn"
[Root @ athena ~] # Cd/usr/share/awstats/wwwroot/cgi-bin
[Root @ athena cgi-bin] #./awstats. pl-update-config = broncho.cn
Found:
Create/Update database for config "/etc/awstats/awstats.broncho.cn. conf" by AWStats version 6.8 (build 1.910)
From data in log file "/var/log/httpd/broncho.cn _ access_log.20100927 ″...
Phase 1: First bypass old records, searching new record...
Searching new records from beginning of log file...
AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log.
Your log file/var/log/httpd/broncho.cn _ access_log.20100927 must have a bad format or LogFormat parameter setup does not match this format.
Your AWStats LogFormat parameter is: 1
This means each line in your web server log file need to have "combined log format" like this:
111.22.33.44--[10/Jan/2001: 02: 14: 14 + 0200] "GET/HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm"" Mozilla/4.0 (compatible; MSIE 5.01; windows NT 5.0 )"
And this is an example of records AWStats found in your log file (the record number 50 in your log ):
113.227.9.179--[27/Sep/2010: 10: 34: 49 + 0800] "GET/forum/styles/prosilver_se/theme/images/border_right.gif HTTP/1.1" 200 124
Setup ('/etc/awstats/awstats.broncho.cn. conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory ).
The original logs are separated by day:
CustomLog "|/usr/local/sbin/cronolog/var/log/httpd/broncho.cn _ access_log. % Y % m % d" common
Follow the error prompt and modify it:
CustomLog "|/usr/local/sbin/cronolog /var/log/httpd/broncho.cn_access_log.%Y%m%d" combined
Browse http: // 192.168.1.222/awstats. pl? Config = broncho.cn.
Regular log analysis: when the server load ratio is low, it is generally a.m.
[Root @ athena ~] # Vim/usr/share/awstats/wwwroot/cgi-bin/awstats. sh
#!/bin/bashcd /usr/share/awstats/wwwroot/cgi-binperl awstats.pl -update -config=broncho.cn
[Root @ athena ~] # Chmod 755/usr/share/awstats/wwwroot/cgi-bin/awstats. sh
[Root @ athena ~] # Crontab-e
0 3 ***/usr/share/awstats/wwwroot/cgi-bin/awstats. sh
AWStats: Click here
AWStats: Click here
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-08/105000.htm