请教linux下Awstats多域名配置
myfreeke
|
1#
myfreeke 发表于 2008-10-17 09:13
请教linux下Awstats多域名配置
我在redhat as4 u6下跑着nginx,Nginx做反向代理,我安装awstats 6.8分析某一个站点没有问题,但多个站点就报错,请教各位平时在linux下分析多个域名,并且分别不同的日志文件时,是如何操作的呢?
我参考了下面的文档资料来配置,但就是报错,说日志格式不对! http://www.anywolfs.com/liuhui/article.asp?id=288 [root@AS31 Geo-IPfree-0.2]# /usr/local/awstats/tools/awstats_updateall.pl now -a wstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -configdir=/usr/local/awstats/wwwroot/cgi-bin/ -lang=cn -excludeconf=common Running '"/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -update -config=bbs -configdir="/usr/local/awstats/wwwroot/cgi-bin/"' to update config bbs Create/Update database for config "/usr/local/awstats/wwwroot/cgi-bin/awstats.bbs.conf" by AWStats version 6.8 (build 1.910) From data in log file "/home/log/bbs.access.log"... Phase 1 : First bypass old records, searching new record... Searching new records from beginning of log file... Jumped lines in file: 0 Parsed lines in file: 484 Found 144 dropped records, Found 340 corrupted records, Found 0 old records, Found 0 new qualified records. Running '"/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -update -config=register -configdir="/usr/local/awstats/wwwroot/cgi-bin/"' to update config register Create/Update database for config "/usr/local/awstats/wwwroot/cgi-bin/awstats.register.conf" by AWStats version 6.8 (build 1.910) From data in log file "/home/log/register.access.log"... 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 /home/log/register.access.log must have a bad format or LogFormat parameter setup does not match this format. Your AWStats LogFormat parameter is: 2 This means each line in your web server log file need to have "MSIE Extended W3C log format" like this: date time c-ip c-username cs-method cs-uri-sterm sc-status sc-bytes cs-version cs(User-Agent) cs(Referer) And this is an example of records AWStats found in your log file (the record number 50 in your log): 222.76.192.247 - - [16/Oct/2008:15:02:06 +0800] "GET /img/bg.gif HTTP/1.1" 304 138 "http://register.chinarenservice.com/actived.php?activeCode=JkBiJVZPeWqeC1js4KR4" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" "-" Setup ('/usr/local/awstats/wwwroot/cgi-bin/awstats.register.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory). Running '"/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -update -config=chinarenservice -configdir="/usr/local/awstats/wwwroot/cgi-bin/"' to update config chinarenservice Create/Update database for config "/usr/local/awstats/wwwroot/cgi-bin/awstats.chinarenservice.conf" by AWStats version 6.8 (build 1.910) From data in log file "/home/log/chinarenservice.access.log"... Phase 1 : First bypass old records, searching new record... Direct access after last parsed record (after line 84150) 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 /home/log/chinarenservice.access.log must have a bad format or LogFormat parameter setup does not match this format. Your AWStats LogFormat parameter is: 2 This means each line in your web server log file need to have "MSIE Extended W3C log format" like this: date time c-ip c-username cs-method cs-uri-sterm sc-status sc-bytes cs-version cs(User-Agent) cs(Referer) And this is an example of records AWStats found in your log file (the record number 50 in your log): 221.218.169.67 - - [16/Oct/2008:18:04:40 +0800] "GET /images/mainNav_mouseUp.gif HTTP/1.1" 304 137 "http://www.chinarenservice.com/space.html?ch=2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" "-" Setup ('/usr/local/awstats/wwwroot/cgi-bin/awstats.chinarenservice.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory). |