How do I get AWstats to analyze old log files?

北慕城南 提交于 2019-12-02 17:58:34

You can use the logresolvemerge.pl tool (see FAQ-COM350). Either you change the LogFile Option in the .conf file, or (for a one-time run) use it as argument in an update.

LogFile="/path/to/logresolvemerge.pl access.log* |"

An example (on a debian based system) for a command line update:

/usr/lib/cgi-bin/awstats.pl -update -config="example.com" -LogFile="/usr/share/awstats/tools/logresolvemerge.pl /var/log/apache2/access.log* |"

Remark: It is possible, that you need to clean the existing statistic-data. See FAQ-COM500.

If you need a Windows version of this for either the command line or a site configuration file, you can use exactly the same syntax style:

LogFile="C:/WebRoot/MYSITE~1/traffic/aws/tools/logresolvemerge.pl C:/MYPROG~1/Apache24/logs/access/access_log.* |"

Note the use of DOS short names for folders with spaces. You can obtain DOS short names for a file or folder with dir /x from the command line (DOS prompt).

In Windows, I had to use the following entry: (added "PERL", path to my install folder, and inclue *.log before the pipe)

LogFile="PERL C:/AWSTATS/tools/logresolvemerge.pl C:/AWSTATS/wwwroot/cgi-bin/stats/logFiles/*.log |"

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!