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

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

这几天忘了做日志分析,结果awstats里面差了好几天的数据,14号到16号的分析结果都没有,有什么办法可以补回来

所使用的命令行是:

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

这个命令只能分析前一天的数据,再之前的就没办法处理了。。
最笨的方法,修改awstats的配置文件日志路径,直接指定日志

ps:为什么会忘记了分析呢?你不是设置的定时嘛?
修改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"


指定分析两天前的日志文件


QUOTE:
原帖由 itxiaofei 于 2007-8-25 00:10 发表
最笨的方法,修改awstats的配置文件日志路径,直接指定日志

ps:为什么会忘记了分析呢?你不是设置的定时嘛?

请问具体怎么操作,能说详细点吗?


QUOTE:
原帖由 Ecore 于 2007-8-26 14:41 发表
修改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天前的数据?