I need to delete and reset the domlogs files from Apache server, as they have become too large, but I want to keep a record of the past few years website stats.
I could download the domlogs files (they look like MS-DOS applications) but once I have I am not sure how to read them, is there some off server application that could open these files? I currently view stats in awstats from cPanel, but the size of the files is causing problems with updating now.
The only thing I can think of doing is taking screenshots of the relevant stats that I want to keep, before deleting the files, but was thinking there must be a better solution than that.
Once the stats have been run (like awstats or webalizer), you don't need to keep the raw logs anymore. You can remove the raw logs and the existing stats should still be there. This is how it is normally done. The logs are reset after the stats are run. This keeps the space low and makes it more efficient.
Please check first in case you have any different unusual setup though, make backups before doing anything.
PlatinumServerManagement (also known as PSM)
The OLDEST and LARGEST and MOST TRUSTED server management provider in the USA, with 15+ employees and growing! Providing quality support for OVER 18 years! Currently supporting over 3,000+ servers monthly! www.PlatinumServerManagement.com Proud member of the NJ BBB & Chamber of Commerce & Authorized cPanel Partner.
If you haven't done so already, you should setup some sort of log rotation so that logs are manageable. Logrotate will automatically rename the log, start a new one, and compress them. You can keep however many copies you want.