アクセスログ解析ツール analog


analog とは,アクセス解析ツールです.
analog 本家
analog 日本語ページ
グループユーザ epwww で作業する.

□ インストール
  1. analog より analog の最新版(2001/11/30 現在) analog-5.03.tar.gz をダウンロードする.

  2. ダウンロードしたファイルを以下のディレクトリにコピー
    /usr/src/
    /home/epwww/public_html/log_report/
  3. 以下のディレクトリに移動
    $ cd /home/epwww/public_html/log_report/
  4. 展開する
    $ tar zxvf analog-5.03.tar.gz
  5. 以下のディレクトリに移動
    $ cd analog-5.03
  6. make する
    $ make
    analog ができる
□ analog の日本語化
  1. 日本語ページ よりバージョンに合った日本語化用のファイル (EUC-JP 用) をダウンロードする
    analog.cfg
    jp.lng
    jpdesc.txt
  2. analog.cfg のバックアップ analog.cfg.bk をとる
    ダウンロードした alalog.cfg は /home/epwww/public_html/log_report/analog-5.03/ 以下に移動

    ダウンロードした jp.lng, jpdesc.txt は /home/epwww/public_html/log_report/analog-5.03/lang/ 以下に移動
□ analog 設定ファイルの変更
$ vi analog.cfg
LOGFILE /var/log/apache/access.log
OUTFILE /home/epwww/public_html/log_report/index.html

LOCALCHARTDIR /home/epwww/public_html/log_report/images/
注:ファイル jpdom.tab がなく,代わりに jpedom.tab というファイルがある(かもしれない)とき,
DOMAINSFILE lang/jpedom.tab
と変更するか, jpedom.tab を jpdom.tab にコピーする.
□ apache 設定ファイルの変更

httpd.conf 中に以下を加える.
vi /etc/apache/conf/httpd.conf
Alias /analog/ /home/epwww/public_html/log_report/
□ analog の動作確認
$ ./analog
□ エラーが出るとき
./analog: analog version 5.03/Unix
./analog: Warning R: Turning off empty Search Word Report
(For help on all errors and warnings, see docs/errors.html)
./analog: Warning R: Turning off empty Operating System Report
上のようなエラーがでるときは,設定ファイル analog.cfg に以下の 2 行を追加
SEARCHWORD OFF
SREP OFF
□ cron の設定
$ crontab -e
30 6 * * * /home/epwww/public_html/log_report/analog-5.03/analog
□ 参考サイト
更新日 : 2001/11/30 (高橋 こう子)
作成日 : 2001/11/30
Copyright (C) 2000 epnetfan All rights reserved.