Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > Hardware and Server Configuration > AWStats - Updating from Historic Logs
forgot password?



Reply


Old
  Post #1 (permalink)   12-05-2006, 04:45 AM
HD Addict
 
Join Date: Oct 2005
Location: Bradford, UK
Posts: 232

Status: Will is offline
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.)
 
 
 


Old
  Post #2 (permalink)   12-06-2006, 01:44 PM
HD Addict
 
Join Date: Feb 2005
Location: Herts, UK
Posts: 143

Status: monaghan is offline
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.
__________________
Alex Monaghan
Monaghan Consultants Ltd
www.monaghan.co.uk
www.www-hoster.com
 
 
 


Old
  Post #3 (permalink)   12-07-2006, 07:28 AM
HD Addict
 
Join Date: Oct 2005
Location: Bradford, UK
Posts: 232

Status: Will is offline
I swear I looked there first! I must have missed this one when I looked;

Quote:
Originally Posted by http://awstats.sourceforge.net/docs/awstats_faq.html#OLDLOG
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/...aq.html#OLDLOG
 
 
 


Old
  Post #4 (permalink)   12-08-2006, 01:43 AM
HD Addict
 
Join Date: Feb 2005
Location: Herts, UK
Posts: 143

Status: monaghan is offline
Glad you found it, I couldn't remember how to, but I knew I'd found the answer a few weeks back
__________________
Alex Monaghan
Monaghan Consultants Ltd
www.monaghan.co.uk
www.www-hoster.com
 
 
 


Old
  Post #5 (permalink)   12-13-2006, 10:50 AM
HD Guru
 
Join Date: Sep 2005
Location: England
Posts: 753
Send a message via Skype™ to Matthew

Status: Matthew is offline
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.
__________________
Matthew
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: