]> granicus.if.org Git - pgbadger/commitdiff
Add support to log_timezones with + and - signs to timestamp with milliseconds (%m).
authorDalibo <admin@dalibo.com>
Fri, 19 Dec 2014 14:28:25 +0000 (15:28 +0100)
committerDalibo <admin@dalibo.com>
Fri, 19 Dec 2014 14:28:25 +0000 (15:28 +0100)
pgbadger

index 71b36f36be30854235d84a832b0a6d0a90bacf9b..25d6fae32797ce88841058add534f1ecf17ed543 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -10678,7 +10678,7 @@ sub build_log_line_prefix_regex
                '%h' => [('t_client',       '([a-zA-Z0-9\-\.]+|\[local\]|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[0-9a-fA-F:]+)?')],              # remote host
                '%p' => [('t_pid',          '(\d+)')],                                                        # process ID
                '%t' => [('t_timestamp',    '(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})(?: [A-Z\+\-\d]{3,6})?')],      # timestamp without milliseconds
-               '%m' => [('t_mtimestamp',   '(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\.\d+(?: [A-Z\d]{3,6})?')], # timestamp with milliseconds
+               '%m' => [('t_mtimestamp',   '(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\.\d+(?: [A-Z\+\-\d]{3,6})?')], # timestamp with milliseconds
                '%l' => [('t_session_line', '(\d+)')],                                                        # session line number
                '%s' => [('t_session_timestamp', '(\d{4}-\d{2}-\d{2} \d{2}):\d{2}:\d{2}(?: [A-Z\d]{3,6})?')],    # session start timestamp
                '%c' => [('t_session_id',        '([0-9a-f\.]*)')],                                               # session ID