log files in hosting space
The log files of the current month seem to take more than half of my hosting space. I can remove those logs to save the disk space, but AWstats seems to need those log files to produce the traffic report.
I don't know if this would be a dilemma for most people to keep the log files for traffic report or to delete them for disk space ? or if there is any better solution ?
Re: log files in hosting space
Quote:
Originally posted by chrisclock
The log files of the current month seem to take more than half of my hosting space. I can remove those logs to save the disk space, but AWstats seems to need those log files to produce the traffic report.
I don't know if this would be a dilemma for most people to keep the log files for traffic report or to delete them for disk space ? or if there is any better solution ?
This is my method of doing it...
1.) Rename the access log (e.g mydomain.com.access_log mydomain.com.access_log.tmp) and truncate the mydomain.com.access_log so the current one is left emptied for writing.
2.) Use awstats to produce the web site statistics using the .tmp log file
3.) As soon as the stats is produced, awstats should produce a data file (text file) containning all the hits, visits. This file is used to save previous stats report. The next time awstats run, it will use the data file. If you delete the data file, the stats is lost.
4.) Remove the .tmp access log.
This is done nightly and the log file is very tiny~ Tho you can do it hourly... it doesn't hurt ... :angel: