Created
December 27, 2012 05:18
-
-
Save jamtur01/4385673 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