sudo cscli collections install crowdsecurity/apiscpInstalls 9 parsers and 56 scenarios, via Postfix - Bruteforce Protection.
View ApisCP →sudo cscli parsers install crowdsecurity/postfix-logsThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
# Copyright (c) 2014, 2015, Rudy Gevaert# Copyright (c) 2020 Crowdsec# Permission is hereby granted, free of charge, to any person obtaining# a copy of this software and associated documentation files (the# "Software"), to deal in the Software without restriction, including# without limitation the rights to use, copy, modify, merge, publish,# distribute, sublicense, and/or sell copies of the Software, and to# permit persons to whom the Software is furnished to do so, subject to# the following conditions:# The above copyright notice and this permission notice shall be# included in all copies or substantial portions of the Software.# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.# Some of the groks used here are from https://github.com/rgevaert/grok-patterns/blob/master/grok.d/postfix_patternsonsuccess: next_stagefilter: "evt.Parsed.program endsWith '/smtpd'"name: crowdsecurity/postfix-logspattern_syntax:POSTFIX_HOSTNAME: '(%{HOSTNAME}|unknown)'POSTFIX_COMMAND: '(AUTH|STARTTLS|CONNECT|EHLO|HELO|RCPT)'POSTFIX_ACTION: 'discard|dunno|filter|hold|ignore|info|prepend|redirect|replace|reject|warn'RELAY: '(?:%{HOSTNAME:remote_host}(?:\[%{IP:remote_addr}\](?::[0-9]+(.[0-9]+)?)?)?)'SMTP_BASIC_STATUS_CODE: '[0-9]{3}' #250SMTP_ENHANCED_STATUS_CODE: '[0-9.]+' #2.0.0SMTP_RETURN_CODES: '%{SMTP_BASIC_STATUS_CODE:smtp_basic_status_code}( %{SMTP_ENHANCED_STATUS_CODE:smtp_enhanced_status_code})?' #250 2.0.0description: "Parse postfix logs"nodes:- grok:apply_on: messagepattern: 'lost connection after %{DATA:smtp_response} from %{RELAY}'statics:
Sign in to see the Security Engines that run this log parser, the version they run and whether it was modified locally.