Neo's Blog

首頁 相本 討論 書籤

分類目錄
本站日誌 (51)
碎碎唸啦 (173)
網站架設 (84)
程式設計 (161)
軟體使用 (69)
電子商務 (126)
經營奇想 (48)
基金理財 (11)
聰明消費 (87)
電影心得 (47)
開放原碼 (16)
工作記錄 (2)
毛毛小記 (9)
就是不同 (2)




歷史資料
 




February 26, 2004
使用 Awstats 分析 maillog (適用sendmail、Postfix... 等)

其實參考這一篇很快就可以改出來:
http://awstats.sourceforge.net/docs/awstats_faq.html#MAIL

1.先複制出一個你要用的 conf 檔案,如 /etc/awstats.mail.conf,並且用 vi打開它。

2. 修改 LogFile ,寫你存放 awstats 路徑中的 tools/maillogconvert.pl,如:
LogFile="/usr/local/awstats/tools/maillogconvert.pl"

3. 找到以下幾個變數照著改就好了
LogType=M
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
LevelForFileTypesDetection=0
ShowMenu=1
ShowMonthStats=HB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=0
ShowHostsStats=HBL
ShowAuthenticatedUsers=0
ShowRobotsStats=0
ShowEMailSenders=HBL
ShowEMailReceivers=HBL
ShowSessionsStats=0
ShowPagesStats=0
ShowFileTypesStats=0
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=1

4. 產生統計資料,如:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mail -update

這樣就大功告成啦!

再來就是去你的網址看看結果,如:
http://www.neo.com.tw/cgi-bin/awstats/awstats.pl?config=mail

 
由 Neo 發表於 February 26, 2004 07:23 PM 收進你的MyShare個人書籤  

站長大大,您好:

想請教一下,是否有方式可以讓Awstats的流量顯示的很高?
我知道Awstats對搜尋機器人的認定較寬鬆,
是否有方式可以讓搜尋機器人幫助衝高網站?

謝謝站長大大。


David 發表於 May 26, 2008 10:18 PM

站長大大,您好:

想請教一下,是否有方式可以讓Awstats的流量顯示的很高?
我知道Awstats對搜尋機器人的認定較寬鬆,
是否有方式可以讓搜尋機器人幫助衝高網站?

謝謝站長大大。


David 發表於 May 26, 2008 10:19 PM
發表迴響  
(*星號開頭為必填欄位)











(請輸入您看到的數字,看不到請按右鍵->顯示圖片)


記住我的資訊?







Copyright 2005 Neo's Blog All rights reserved.