HTTPD::Log::Merge
my $merge = HTTPD::Log::Merge->new( logfile => \@logfiles, verbose => 1, out_fh => \*STDOUT, ); $merge->merge;
HTTPD::Log::Merge is a simple module for merging httpd logfiles. It takes a list of log files and merges them based on the date of each entry in the logfile. It works for NSCA style httpd logs (Common Log Format, Extended Log Format and the like) - see HTTPD::Log::Filter for more information on supported log formats.
The constructor for HTTPD::Log::Merge takes the following options passed as a hash:
This option should contain an array ref of paths to httpd logfiles. The option is required, and there need to be two or more logfiles.
A filehandle to output merged logfile to. Defaults to STDOUT.
Print interesting stuff to STDERR.
Does exactly what it says on the can!
Ave Wrigley <Ave.Wrigley@itn.co.uk>
Copyright (c) 2001 Ave Wrigley. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTPD::Log::Merge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTPD::Log::Merge
CPAN shell
perl -MCPAN -e shell install HTTPD::Log::Merge
For more information on module installation, please visit the detailed CPAN module installation guide.