]> granicus.if.org Git - pgbadger/commitdiff
Fix parser on syslog with level info after the timestamp like <local0.info>. Thanks...
authorDarold Gilles <gilles@darold.net>
Wed, 7 Nov 2012 10:53:59 +0000 (11:53 +0100)
committerDarold Gilles <gilles@darold.net>
Wed, 7 Nov 2012 10:53:59 +0000 (11:53 +0100)
pgbadger

index 8309af4bd290367a650286461a240240a8750ec6..09f94c0775d8ea2b6421534177b14b802b507270 100755 (executable)
--- 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}++;