• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

how to get old logfiles into awstats

H

Herby

Guest
I want awstats to process my

.processed.x logfiles

But changing the "LogFile" Parameter in awstats conf file doesn't have any effect. It only reads the actual access_log file.

/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domainname

Any hints ?
 
We had this problem..

It seems that AWStats disregards data from before the date/time of the last log entry that it processed.

We deleted the AWStats-generated data file for the month:
/var/www/vhosts/<DOMAIN>/statistics/webstat/awstats<MMYYYY>.<DOMAIN>-http.txt

e.g. for the domain "demo.com" and month of Feb 2007:
/var/www/vhosts/demo.com/statistics/webstat/awstats022007.demo.com-http.txt

This will reset the stats for the month.. which obviously means you need to have the log data for that month to regenerate stats from scratch.

Alternatively, you *could* (I haven't tried this) try changing lines in that data file.. like the 'LastLine' entry:
Code:
# LastLine    = Date of last record processed - Last record line number in last log - Last record offset in last log - Last record signature value

LastLine 20070223045457 21632 4960894 0
 
Ahhh, it does seem that the "LogFile" parameter in the awstats conf file is ignored :| :mad:

I've had to mess around with this again :( in the end I just merged the log files into one big access_log file and ran stats :D

Code:
cat access_log >> access_log.processed; cp access_log.processed access_log; rm access_log.processed; touch access_log.processed;
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=demo.com

If you move (mv instead of cp followed by rm) access_log.processed to access_log then Apache gets upset & stops logging.. until you restart httpd :confused:

This is what happens :mad: I try to be all Unixy n clever.. when really I'm Windows user :eek:
 
Back
Top