• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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