From 5569ba8630f7eed92697fb7f6b57f98a14da106f Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Thu, 5 Jul 2012 21:47:09 +0200 Subject: [PATCH] Fix miss handling of multi lines queries on syslog --- pgbadger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgbadger b/pgbadger index d81221b..ad01993 100755 --- a/pgbadger +++ b/pgbadger @@ -416,7 +416,7 @@ foreach $logfile (@log_files) { $tmp_query =~ s/#011/\t/g; # Process the log line &parse_query($tmp_year, $month_abbr{$1}, $day, $3, $4, $5, $6, $8, $9, $10, $11, $tmp_query); - } elsif ($line =~ /^(...)\s+(\d+)\s(\d+):(\d+):(\d+)\s([^\s]+)\s([^\[]+)\[(\d+)\]:\s\[([0-9\-]+)\]\s+[^\#]*(#011)[\t\s]*(.*)/) { + } elsif ($line =~ /^(...)\s+(\d+)\s(\d+):(\d+):(\d+)\s([^\s]+)\s([^\[]+)\[(\d+)\]:\s\[([0-9\-]+)\]\s+(.*)/) { my $tmp_query = $11; $tmp_query =~ s/#011/\t/g; $cur_info{query} .= "\n" . $tmp_query; -- 2.40.0