AWStats Analyze Multiple Logs

November 11th, 2009

If you have logrotate running on Apache log files or your IIS server creates a new log every day then you end up with a bunch of logs that have a similar name format. If you want AWStats to process a large number of these without you having to manually join them (using cat on Linux machines) then you should use the included file called logresolvemerge.pl included with AWStats.

To use this simply use this line in you config file.

LogFile="/usr/share/awstats/tools/logresolvemerge.pl /home/iis_logs/iis_logs/ex* |"

Here I’m using logresolvemerge to join my IIS log files in the format exYYMMDD.log. This line will feed all the log files from oldest to newest to AWStats so it can process them. It works incredibly well and is very fast.

Google BookmarksEvernoteGoogle GmailHotmailWordPressLinkedInFacebookDeliciousShare

Leave a comment

Switch to our mobile site