Re: perl program to log apache access.log with mass virtual hosting
On Sat, 2004-10-23 at 08:07, Cristi Banciu wrote:
> Hi,
>
> I am using apache with mass virtual hosting. I need to keep separate log
> files for each vhosts into something like thist
> /var/log/httpd/$vhost.without.www/$year/$month/$day/access.log
>
> I have found a little perl script that says it does that. Unfortunatelly
> it does not working, apache error.log saying something like this:
> piped log program '/usr/local/sbin/logger' failed unexpectedly
>
> Here is the perl script
> ###start program ###
> #!/usr/bin/perl
Have you tried using the -w switch (#!/usr/bin/perl -w) and running it
manually?
logger.pl < my_favorite_access.log
If so, what (if any) errors/warnings do you see?
-davidc
Reply to: