Index: [Article Count Order] [Thread]

Date:  Mon, 26 Feb 2001 16:35:48 +0900
From:  "Hiroshi Tsunogai" <tsuno@layer-seven.com>
Subject:  [analog-jp:00424] もう一度教えてください
To:  <analog-jp@monyo.com>
Message-Id:  <019c01c09fc6$bbaa3910$9865fea9@planet.layerseven.com>
Posted:  Mon, 26 Feb 2001 16:35:46 +0900
X-Mail-Count: 00424

先日投稿した角皆といいます。
いろいと試してみたのですが
まだうまくいきません。

現状としては
Apacheのデフォルトのログフォーマット(カスタム設定していないログ)
の場合には問題なく解析できているのですが、
カスタム設定したログファイル(下記参照してください)だと、
下記のように
------------------------------------------------------
./analog: analog version 4.16/Unix
./analog: Warning L: Large number of corrupt lines in logfile
 /var/log/access_log: try different LOGFORMAT
 (For help on all errors and warnings, see docs/errors.html)
   Current logfile format:
     %S %j %j [%d%M%y:%h:%n:%j %j] "%j %r %j" %c %b "%B" %f\n
./analog: Warning R: Turning off empty time reports
./analog: Warning R: Turning off empty Request Report
./analog: Warning R: Turning off empty File Type Report
./analog: Warning R: Turning off empty Directory Report
./analog: Warning R: Turning off empty Domain Report
./analog: Warning R: Turning off empty Organisation Report
./analog: Warning R: Turning off empty Search Word Report
./analog: Warning R: Turning off empty Operating System Report
./analog: Warning R: Turning off empty File Size Report
./analog: Warning R: Turning off empty Status Code Report
------------------------------------------------------
とでてしまいます。

現在の環境は
OS        Redhut6.2(カーネルはデフォルト)
Apache  1.3.12

Apacheのhttpd.confは
------------------------------------------------------
"%h %l %u %t \"%r\" %s %b \"%{User-Agent}i\" %{Referer}i\""
------------------------------------------------------
としてあります。
ちなみにこんな風に出ています。
------------------------------------------------------
ホスト名 - - [24/Feb/2001:01:37:41 +0900] "GET / HTTP/1.1" 200 1026 "Mozi
lla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" 参照元"
------------------------------------------------------

Analog   4.16

変更したファイルは

anlghea2.h:
#define LANGUAGE (ENGLISH) -> #define LANGUAGE (JAPANESE)

anlghead.h:
#define HOSTNAME "[my organisation]" -> #define HOSTNAME "[自分のホスト名]"
#define HOSTURL "none" -> #define HOSTURL "自分のアドレス"
その他ディレクトリ関連

Makefileは変更していません。

jpform.htmlは、佐藤さんが添付してくれたものを
自分のディレクトリに手直ししたものを使用しています。

Analogのanalog.confは、
http://www.tokyo-kasei.ac.jp/~matsuki/analog/helper/analog.cfg
のLOG関連のところのみ変更して
----------------------------------------------------------------
LOGFORMAT (%S %j %u [%d%M%y:%h:%n:%j %j] "%j %r %j" %c %b "%B" %f)
LOGFILE /var/log/access_log
----------------------------------------------------------------
のような感じにしてあります。その他は変更していません。

またまたですいませんが、どなたか
ご教授のほどよろしくお願いします。

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
角皆 幾<Hiroshi Tsunogai>
tsuno@layer-seven.com
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx