• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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