How do I get AWstats to analyze old log files?

后端 未结 4 1121
面向向阳花
面向向阳花 2021-01-31 03:20

I have many old log files (apache) and they span 3 different VPS servers I\'ve had so there are different sets with the same name:

old vps 1 (jan. 2012 - mar. 2012) -> a

4条回答
  •  面向向阳花
    2021-01-31 04:05

    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.

提交回复
热议问题