From 99f81979ddb36f44bee259930e03a58a11a43ad4 Mon Sep 17 00:00:00 2001 From: andreby Date: Fri, 15 Sep 2023 10:07:26 +0200 Subject: [PATCH] examples/postfix.mtail - move dash to end of character class Otherwise the "application" regex group won't match a string such as "postfix/postfix-script" --- examples/postfix.mtail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/postfix.mtail b/examples/postfix.mtail index 23944f83f..3fc265816 100644 --- a/examples/postfix.mtail +++ b/examples/postfix.mtail @@ -15,7 +15,7 @@ const QMGR_INSERT_LINE /:.*, size=(?P\d+), nrcpt=(?P\d+)/ const QMGR_REMOVE_LINE /: removed$/ /^(?P(?P\w+\s+\d+\s+\d+:\d+:\d+)|(?P\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d+[+-]\d{2}:\d{2}))/ + -/\s+(?:\w+@)?(?P[\w\.-]+)\s+postfix\/(?P[\w\.-\/]+)(?:\[(?P\d+)\])?:\s+(?P.*)/ { +/\s+(?:\w+@)?(?P[\w\.-]+)\s+postfix\/(?P[\w\.\/-]+)(?:\[(?P\d+)\])?:\s+(?P.*)/ { len($legacy_date) > 0 { strptime($2, "Jan _2 15:04:05") }