How do I get AWstats to analyze old log files?

后端 未结 4 1117
面向向阳花
面向向阳花 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:13

    For an IIS installation on Windows you can run the following on Command Prompt:

    perl "D:/Websites/My Website/Stats/cgi-bin/awstats.pl" -update -config="mywebsite.com" -LogFile="perl \"D:/Websites/My Website/Stats/tools/logresolvemerge.pl\" C:\inetpub\logs\LogFiles\W3SVC1\*.log |"

    Based on:

    1. perl being on your PATH environment variable
    2. Your website being stored in D:/Websites/My Website
    3. The contents of AWStats' wwwroot folder being stored in a folder named Stats one level deeper
    4. AWStats' tools folder being stored within that folder (you might want to only do this temporarily so that they can't be accessed via a web browser)
    5. Your config file being named awstats.mywebsite.com.conf

提交回复
热议问题