User transfer: how to import existing log files

Webcart

Verified User
Joined
Jan 14, 2004
Messages
398
Hello,

I would like to set up account for an old client and "import" the existing Apache log files. By "importing" I mean to have stats inside DA.

Thank you.
 
Hello,

Just copy the

/var/log/httpd/domains/domain.com.log

file from the old account...

John
 
Thank you for your answer.

This is a transfer from an old server w/o DA.
Apache log files are produced as follows:
Code:
LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
TransferLog /data/logs/DOMAIN_NAME/access-log

I transferred that file to /var/log/httpd/domains/domain.com.log, but I don't see any stats update. I know that many stats programs can automatically "guess" log files format. I wonder why stats are not updated yet, is it because that log format wasn't recognized or because stats not updated on the daily basis? If later, how can I force update?
Thank you.
 
Hello,

The nightly tally should catch it.. but if the date is older than the last webalizer update, it might be ignored.. not too sure how weabalizer does it. Try this:
Code:
/usr/bin/webalizer -p -n domain.com -o /home/username/domains/domain.com/stats /var/log/httpd/domains/domain.com.log
John
 
Back
Top