AWStats - Updating from Historic Logs

Will

New member
Hey, how do you guys update AWStats when it has missed a couple of days because some plonker changed the administrator username without updating the saved details in the scheduled task? (Yes, it was me.)
 
Have a look on the AWStats site, the FAQ had something on it. I had to do something similiar the other week when I setup a new server, but got the stats setup wrong.
 
I swear I looked there first! I must have missed this one when I looked;

http://awstats.sourceforge.net/docs/awstats_faq.html#OLDLOG said:
FAQ-COM350 : HOW CAN I PROCESS AN OLD LOG FILE ?
PROBLEM:
I want to process an old log file to include its data in my AWStats reports.
SOLUTION:
You must change your LogFile parameter to point to the old log file and run the update (or use the -LogFile option on command line to overwrite LogFile parameter). The update process can only accept files in chronological order for a particular month, so if you have already processed a recent file and forgot to run update on a log file that contains older data, you must reset all of your statistics (see FAQ-COM500) and restart all of the update processes for all past log files and in chronological order.
However, there is a "tip" that allows you to rebuild only the month were you missed data:
Imagine we are on 5th of July 2003, all your statistics are up to date except for the 10th of April 2003 (you forgot to run the update process for this day, so there is no visit for this day). You can :
- Reset the statistics for April only (this means remove the file awstats042003.[config.]txt as explained in FAQ-COM500),
- Move the statistics history files for the month after April (file awstats052003.[config.]txt, awstats062003.[config.]txt,...) into a temp directory (so that it is no longer in the DirData directory; as if they were deleted).
- Run the update process on all log files for April (in chronological order). AWStats does not complain about "too old record" because there is no history files in DirData directory that contains compiled data more recent than records into log you process.
- Moved back the month history files you saved into your DirData directory.
Your statistics are up to date and the missing days are no longer missing.

Link: http://awstats.sourceforge.net/docs/awstats_faq.html#OLDLOG
 
Good luck! AWStats can be a pain to update if you missed a day. I believe the way is to remove the data file for the whole month and then re import each day via the command prompt :)

Let me know if you get stuck with the instructions above and I can help out of needed. I have done a number of restors on AWStats.
 
Top