Awstats configuration with logresolvemerge and dates

apache-2.2awstats

I'm trying to setup awstats with our current log naming schema. Our logs are named like /var/log/webservers/web07/2012-10/site.com/29-www and all of the numbers are changed via cronolog. The problem is that there is more than just 29-www. We also have things like 29-admin. I would like to combine all of these DD-* logs with awstats. I have tried LogFile="/var/awstats/tools/logresolvemerge.pl /var/log/webservers/web07/%YYYY-%MM/site.com/%DD-*" but I'm getting this error:

Error: Couldn't open server log file "/var/awstats/tools/logresolvemerge.pl /var/log/webservers/web07/2012-10/site.com/29-*" : No such file or directory

So it looks like it's converting the symbols into the correct numbers. Anyone see what I'm doing wrong here?

Also, I can successfully merge these files myself from the command line by doing perl logresolvemerge.pl /var/log/webservers/web07/2012-10/site.com/29-* > newlog

Best Answer

The correct usage does include the pipe at the end. But awstats doesn't like the * at the end because it expects a number there as shown in the documentation. For example: LogFile="/var/awstats/tools/logresolvemerge.pl /var/log/webservers/web07/%YYYY-%MM/site.com/%DD-0-* |"