-
-
Save searchzakir/9623cb076a89f994d2c1 to your computer and use it in GitHub Desktop.
Postfix grok filters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grok { | |
tags => "postfix/smtpd" | |
pattern => [ "%{POSTFIXSMTPDCONNECTS}", | |
"%{POSTFIXSMTPDACTIONS}", | |
"%{POSTFIXSMTPDTIMEOUTS}", | |
"%{POSTFIXSMTPDLOGIN}", | |
"." ] | |
named_captures_only => true | |
} | |
grok { | |
tags => "postfix/smtp" | |
pattern => [ "%{POSTFIXSMTPRELAY}", | |
"%{POSTFIXSMTPCONNECT}", | |
"%{POSTFIXSMTP5XX}", | |
"%{POSTFIXSMTPREFUSAL}", | |
"%{POSTFIXSMTPLOSTCONNECTION}", | |
"%{POSTFIXSMTPTIMEOUT}", | |
"." ] | |
named_captures_only => true | |
} | |
grok { | |
tags => "postfix/bounce" | |
pattern => "%{POSTFIXBOUNCE}" | |
named_captures_only => true | |
} | |
grok { | |
tags => "postfix/qmgr" | |
pattern => "%{POSTFIXQMGR}" | |
named_captures_only => true | |
} | |
grok { | |
tags => "postfix/anvil" | |
pattern => "%{POSTFIXANVIL}" | |
named_captures_only => true | |
} | |
grok { | |
tags => "postfix/cleanup" | |
pattern => "%{POSTFIXCLEANUP}" | |
named_captures_only => true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment