upsforum

Well-Known Member
Jul 27, 2005
474
0
166
I accidentally deleted the file awstats102014.mydomain.txt from /home/user/tmp/awstats and now I lost October month in awstats, is possible rebuild this month with /home/username/logs/mydomain-Oct-2014.gz file?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

Do you have any backups of the account so you can restore the Awstats data directly? If not, you can try extracting that log archive and restoring the data to the /usr/local/apache/domlogs directory. Once you do that, you would generate statistics for the account with a command such as:

Code:
/scripts/runweblogs $username
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
but when I click on "Update now" link in awstats report page which log file is processed?
It processes the domain access log for the domain name. EX:

/usr/local/apache/domlogs/$domain.com

Thank you.