webalizer squid access log
既に導入していますwebalizerを使ってsquidのアクセスログの
レポートを作成したいと思います。
既存のwebalizer.confをコピーして編集
# cp /etc/webalizer.conf /etc/webalizer.squid.conf
# vi /etc/webalizer.squid.conf
----
LogFile /usr/local/squid/var/logs/access.log
LogType squid
OutputDir /home/httpd/html/webalizer2
HistoryName /home/httpd/html/webalizer2/balizer.hist
Incremental yes
IncrementalName /home/httpd/html/webalizer2/webalizer.current
cronに登録 (毎日04:03にレポート作成)
# vi /etc/crontab
----
3 4 * * * root /usr/webalizer -c /etc/webalizer.squid.conf
↑ オプション -cを使って.confファイルを指定するのがミソです。
ブラウザより
http://localhost/webalizer2/
で作成されたレポートの確認をする。
--参考ページ
http://m9841.info/server/webalizer.html
http://homepage1.nifty.com/Que/plamo/apache/webalizer.html
「Linux」カテゴリの記事
- CronChecker(2014.08.19)
- 軽量Linux KonaLinux(2014.06.06)
- Ubuntu 14.04 LTSリリース(2014.04.24)
- 秘匿性OS Tails(2014.04.18)
- Ziproxy logrotate(2014.02.18)
The comments to this entry are closed.
Comments