• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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