歡迎您光臨本站 註冊首頁

awstats的日誌分析,如何分析以前的日誌?

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

awstats的日誌分析,如何分析以前的日誌?

這幾天忘了做日誌分析,結果awstats裡面差了好幾天的數據,14號到16號的分析結果都沒有,有什麼辦法可以補回來

所使用的命令行是:

perl x:\AWStats\wwwroot\cgi-bin\awstats.pl -update -lang=cn -config=xxxxx

這個命令只能分析前一天的數據,再之前的就沒辦法處理了。。
《解決方案》

最笨的方法,修改awstats的配置文件日誌路徑,直接指定日誌

ps:為什麼會忘記了分析呢?你不是設置的定時嘛?:mrgreen: :mrgreen: :mrgreen:
《解決方案》

修改xxx.conf,文件裡邊有說明.




#-----------------------------------------------------------------------------
# MAIN SETUP SECTION (Required to make AWStats work)
#-----------------------------------------------------------------------------

# "LogFile" contains the web, ftp or mail server log file to analyze.
# Possible values: A full path, or a relative path from awstats.pl directory.
# Example: "/var/log/apache/access.log"
# Example: "../logs/mycombinedlog.log"
# You can also use tags in this filename if you need a dynamic file name
# depending on date or time (Replacement is made by AWStats at the beginning
# of its execution). This is available tags :
#   %YYYY-n  is replaced with 4 digits year we were n hours ago
#   %YY-n    is replaced with 2 digits year we were n hours ago
#   %MM-n    is replaced with 2 digits month we were n hours ago
#   %MO-n    is replaced with 3 letters month we were n hours ago
#   %DD-n    is replaced with day we were n hours ago
#   %HH-n    is replaced with hour we were n hours ago
#   %NS-n    is replaced with number of seconds at 00:00 since 1970
#   %WM-n    is replaced with the week number in month (1-5)
#   %Wm-n    is replaced with the week number in month (0-4)
#   %WY-n    is replaced with the week number in year (01-52)
#   %Wy-n    is replaced with the week number in year (00-51)
#   %DW-n    is replaced with the day number in week (1-7, 1=sunday)
#                              use n=24 if you need (1-7, 1=monday)
#   %Dw-n    is replaced with the day number in week (0-6, 0=sunday)
#                              use n=24 if you need (0-6, 0=monday)
#   Use 0 for n if you need current year, month, day, hour...
# Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"
# Example: "C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"
# You can also use a pipe if log file come from a pipe :
# Example: "gzip -d </var/log/apache/access.log.gz |"
# If there is several log files from load balancing servers :
# Example: "/pathtotools/logresolvemerge.pl *.log |"
#
#LogFile="/export/logs/DataFile/%YYYY-0-%MM-0-%DD-24/localhost_access_%YYYY-0-%MM-0-%DD-24.log"
#LogFile="/export/logs/DataFile/%YYYY-0-%MM-0-%DD-24/localhost_access_%YYYY-0-%MM-0-%DD-24.log"
#LogFile="/export/logs/DataFile/%YYYY-0-%MM-0-%DD-24/localhost_access_%YYYY-0-%MM-0-%DD-24.log"


指定分析兩天前的日誌文件
《解決方案》

原帖由 itxiaofei 於 2007-8-25 00:10 發表 http://bbs.chinaunix.net/images/common/back.gif
最笨的方法,修改awstats的配置文件日誌路徑,直接指定日誌

ps:為什麼會忘記了分析呢?你不是設置的定時嘛?:mrgreen: :mrgreen: :mrgreen:



請問具體怎麼操作,能說詳細點嗎?
《解決方案》

原帖由 Ecore 於 2007-8-26 14:41 發表 http://bbs.chinaunix.net/images/common/back.gif
修改xxx.conf,文件裡邊有說明.




#-----------------------------------------------------------------------------
# MAIN SETUP SECTION (Required to make AWStats work)
#---------------------- ...


。。。。。。抱歉,確實沒看懂。。

#LogFile="/export/logs/DataFile/%YYYY-0-%MM-0-%DD-24/localhost_access_%YYYY-0-%MM-0-%DD-24.log"
#LogFile="/export/logs/DataFile/%YYYY-0-%MM-0-%DD-24/localhost_access_%YYYY-0-%MM-0-%DD-24.log"
#LogFile="/export/logs/DataFile/%YYYY-0-%MM-0-%DD-24/localhost_access_%YYYY-0-%MM-0-%DD-24.log"
  
這個是處理2天前的數據?

[火星人 ] awstats的日誌分析,如何分析以前的日誌?已經有477次圍觀

http://coctec.com/docs/service/show-post-36236.html