debian? インストール †aptitude install analog
文字化けしていたら!! /etc/cron.d/以下にanalogなどのファイルを置き、こんな感じにしておく。 47 7 * * 0 root if [ -x /home/amori/bin/genanalog ]; then /home/amori/bin/genanalog ; fi そしてgenanalogの中身はこんな感じ #! /bin/bash ANALOG="/usr/bin/analog" LOGKF="/usr/bin/logkf" FILENAME=`date '+%Y%m%d'`.html $LOGKF /var/log/apache/access.log.1 > /tmp/access.log.1e $ANALOG +g/etc/analog.cfg /tmp/access.log.1e > /var/www/analog_report/$FILENAME そして!!logkfをちゃんとダウンロード! 参考URL analogの使い方 †
292.560.12.165 - - [14/Dec/2005:20:36:24 +0900] "GET / HTTP/1.1" - 200 109 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 怒られた! †analog: Warning R: Turning off empty Request Report analog: Warning R: Turning off empty Redirection 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 Referrer Report analog: Warning R: Turning off empty Referring Site Report analog: Warning R: Turning off empty Internal Search Query Report analog: Warning R: Turning off empty Internal Search Word Report |