logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Split-Logfile - Combined VHost Log File not Splitting!
Author
Damian



Joined: 18 Apr 2007
Posts: 1
Location: UK

PostPosted: Wed 18 Apr '07 11:21    Post subject: Split-Logfile - Combined VHost Log File not Splitting! Reply with quote

Hi,

Windows 2003 Server
Apache 2.2.4 - Apachelounge Build
ActivePerl 5.8.8

I have set up Apache with a number of virtual hosts. All the Access Logging is being handled by one file, acces-*.log which is in the combined format and has the virtual host '%v' added at the front. I wish to then use the Perl 'Split-Logfile' script to parse the access-*.log file into individual virtual host files. I will then be able to use awstats on each of these seperate files.

I have placed Split-Logfile.pl in the directory where apache stores the access-*.log file. I run Split-Logfile from the command window using the following syntax:

split-logfile.pl < access-*.log

However on completion there are no additional files created!!

Has anyone got any suggestions please?

Thanks

Damian
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Wed 18 Apr '07 21:08    Post subject: Reply with quote

Perl doesn't handle piped input very well on Windows.

One trick which often helps is using the pl2bat utility to convert split-logfile.pl to a Windows batch file:
Code:
pl2bat split-logfile.pl

Then run:
Code:
split-logfile.bat < access.log


-tom-
Back to top


Reply to topic   Topic: Split-Logfile - Combined VHost Log File not Splitting! View previous topic :: View next topic
Post new topic   Forum Index -> Other Software