刪除一個月前的日志
統計網段
壓縮檔案處理
查出運作速度最慢的腳本
http://sourceforge.net/projects/awstats/
install
configure
sudo vim /etc/awstats/awstats.conf or awstats.conf.local
or
apache
how do I test awstats.
http://netkiller.8800.org/awstats/awstats.pl
Generating the First Stats
Automatising the stats generation using Cron
If we check the file installed by awstats and search for the word cron using the following command line:
sudo vim /etc/cron.d/awstats
web 測試
http://netkiller.8800.org/awstats/awstats.pl?config=other.8800.org
批量生成
/usr/share/doc/awstats/examples/logresolvemerge.pl
http://localhost/cgi-bin/awstats.pl?config=www.example.com
http://www.jawstats.com/
What is Webalizer?
The Webalizer is a fast, free web server log file analysis program. It produces highly detailed, easily configurable usage reports in HTML format, for viewing with a standard web browser
install webalizer
config
rotate log
crontab
/etc/cron.daily/webalizer
initialization
http://netkiller.8800.org/webalizer/
分析多個檔案
下面腳本可以批量處理曆史日志,等這個腳本運作完後在crontab中加入另一個腳本。
多域名批量處理
http://sarg.sourceforge.net/
http://goaccess.prosoftcorp.com/
CentOS
Ubuntu
使用方法
原文出處:Netkiller 系列 手劄
本文作者:陳景峯
轉載請與作者聯系,同時請務必标明文章原始出處和作者資訊及本聲明。