Hi there
I suggest using a very good script out there named
Awstats. You might have to change the format used by apache to save the logs (can be either common or combined) since the awstats uses combined mode. As about parsing all logs (archived/rotated ones too) you would need to make some changes so awstats can read them all. For this you would need to modifiy the logrotate config file (usually located in /etc/logrotate.d) and make it look something like:
Code:
/usr/local/apache/logs/*log
{
notifempty
daily
rotate 7
compress
sharedscripts
prerotate
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=mydomainconfig
endscript
postrotate
/usr/bin/killall -HUP httpd
endscript
}
so basically include the awstats update process into the logrotate preprocessor command. (bolded lines above are the preprocess of logrotate. Of course you would need to modify the PATH to the logs in the above example to match your server setup. I hope it helps
Regards
Andy