awstatsのログ集計 |
 |
- 日時: 2005/04/24 00:05
- 名前: かわ
-
いつも参考にさせてもらってます。
わかりやすくて大変助かってます・ さて、awstatsのログ集計がうまくいかなくて困ってます。 [root@linux root]# ./awstats.sh Update for config "/etc/awstats/awstats.www.server.com.conf" With data in log file "/var/log/httpd/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 /var/log/httpd/access_log 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): 210.132.247.22 - - [23/Apr/2005:20:12:19 +0900] "GET /awstats/awstats.pl?config=www.server.com&framename=mainleft HTTP/1.0" 200 10529 Setup ('/etc/awstats/awstats.www.server.com.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory). こんな感じに出力されてしまいます。 logはcombinedで出力するようにhttpd.confにちゃんと記述されているんですが・・・ http://server.com/awstats/awstats.pl?config=www.server.comにアクセスすると 一応ページは表示するんですがログが収集できてないので全て0となってます。 何度も入れ直してこちらのページのままやってみたんですが何度やっても同じです。 ちなみにOSはFC1です。 どうかお知恵をお貸しください、お願いします。
|
|