From 811afeb90844d1c21c94c22840651e532c42bd3c Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Wed, 7 Nov 2012 11:53:59 +0100 Subject: [PATCH] Fix parser on syslog with level info after the timestamp like . Thanks to Jehan-Guillaume de Rorthais for the report. --- pgbadger | 1 - 1 file changed, 1 deletion(-) diff --git a/pgbadger b/pgbadger index 8309af4..09f94c0 100755 --- a/pgbadger +++ b/pgbadger @@ -4011,7 +4011,6 @@ sub autodetect_format # Is syslog lines with log level information ? } elsif ($line =~ /^[A-Z][a-z]{2}\s+\d+\s\d+:\d+:\d+\s[^\s]+\s[^\s]+\s([^\s\[]+)\[\d+\]:\s\[[0-9\-]+\](.*?)(LOG|WARNING|ERROR|FATAL|PANIC|DETAIL|STATEMENT|HINT|CONTEXT):\s+$duration/) { -print STDERR "ZZZZZZZZZZZZZZZZZZZZZZZZ $1\n"; $fmt = 'syslog-ll'; $nfound++; $ident_name{$1}++; -- 2.50.1