View Full Version : User transfer: how to import existing log files
Webcart
02-15-2004, 10:53 AM
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.
DirectAdmin Support
02-15-2004, 11:20 AM
Hello,
Just copy the
/var/log/httpd/domains/domain.com.log
file from the old account...
John
Webcart
02-16-2004, 03:57 AM
Thank you for your answer.
This is a transfer from an old server w/o DA.
Apache log files are produced as follows:
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.
DirectAdmin Support
02-16-2004, 09:07 AM
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:
/usr/bin/webalizer -p -n domain.com -o /home/username/domains/domain.com/stats /var/log/httpd/domains/domain.com.logJohn
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.