• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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