Implement all MySQL log parsers. Add report sections, and --report.

This commit is contained in:
Daniel Nichter
2013-02-20 18:20:55 -07:00
parent 0fda528700
commit cb9fe1fac3
4 changed files with 2555 additions and 296 deletions

View File

@@ -87,7 +87,12 @@ while ( my $sampleno = readdir $dh ) {
$output,
"$sample/$sampleno/$basename.txt",
cmd_output => 1,
($sed ? (sed => [ $sed ]) : ()),
sed => [
q{'s/File: .*/File: .../'},
q{'s/ hostname: .*/ hostname: .../'},
q{'s/ MySQL: .*/ MySQL: .../'},
($sed ? $sed : ()),
],
),
"$sampleno: $basename.txt"
) or diag("\n\n---- DIFF ----\n\n", $test_diff,