ApacheLog-Parser
view release on metacpan or search on metacpan
bin/loghack view on Meta::CPAN
my $datestring = get_datestring($date);
# make the tz three digits
(my $tzout = $tz) =~ s/00$//;
$tzout = '+' . $tzout if(length($tzout) == 2);
my $outfile = $outpath . $datestring . ".$hour$tzout.$chunk.tsv.gz";
push(@loaded, $outfile);
#warn "writing $outfile\n";
if(-e $outfile) {
# XXX how to decide whether to skip completely?
die "already have $outfile\n";
}
$chunk = 1; # from now on
if($skipper) { # TODO how to reset skipcount?
my $skipfile = skipfilename($opt, $outfile);
$sw = $skipper->new_writer($skipfile);
}
$out = pipe_out($outfile);
print $ch File::Basename::basename($outfile), "\n";
$outhandles{"$date$hour$tz"} = [$out, $sw];
( run in 0.481 second using v1.01-cache-2.11-cpan-de7293f3b23 )