If first install, follow instructions in documentation
(/usr/local/awstats/docs/index.html) to setup AWStats in 3 steps:
Step 1 : Install and Setup with awstats_configure.pl (or manually)
Step 2 : Build/Update Statistics with awstats.pl
Step 3 : Read Statistics
安裝完成,再來設定參數檔
最後
#/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=postfix
Update for config "/etc/awstats/awstats.postfix.conf"
With data in log file "perl /usr/local/awstats/tools/maillogconvert.pl standard < /var/log/maillog |"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 358876
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 358815 new qualified records.
這樣就成功了