Comments on Merging Multiple Apache Access Logs Into One Overall Access Log
Merging Multiple Apache Access Logs Into One Overall Access Log Let's assume you have a web application that runs of a cluster of Apache nodes. Each node generates its own Apache access log from which you can generate page view statistics with tools such as Webalizer or AWStats. Obviously you do not want to have page view statistics for each Apache node, but overall page view statistics. To achieve this, we must merge the access logs from each node into one overall access log that we can then feed into Webalizer or AWstats. There is a Perl script called logresolvemerge.pl (part of the AWStats package) that can do this for us.
3 Comment(s)
Comments
Very Nice article... I tried & its working fine very useful...
Hi,
there is no need for a cronjob, here is my LogFile line:
LogFile="/usr/share/awstats/tools/logresolvemerge.pl /export/www/google.com/log/*/*/*access*.log |"
The pipe at the end does the trick, you could probably use "cat" as well.
Cheers,
Ben
awstats Couldn’t open server log file xxxx: Permission denied
this sometimes was caused by mode not right for log directory. we should change it to 755. more info here awstats installation and configuration guide on linux centos