sudo cscli collections install a1ad/meshcentralInstalls 1 parser and 1 scenario.
View meshcentral →sudo cscli parsers install a1ad/meshcentral-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.
onsuccess: next_stage#debug: falsename: a1ad/meshcentral-logsdescription: "Parse meshcentral logs"filter: "evt.Parsed.program == 'meshcentral'"pattern_syntax:MESHCENTRAL_CUSTOMUSER: "(%{EMAILADDRESS}|%{USERNAME})"MESHCENTRAL_CUSTOMDATE: "%{MONTH} %{MONTHDAY} %{HOUR}:%{MINUTE}:%{SECOND}"nodes:- grok:pattern: '%{MESHCENTRAL_CUSTOMDATE:timestamp}.*Failed password for %{MESHCENTRAL_CUSTOMUSER:username} from %{IP:source_ip}.*'apply_on: messagestatics:- meta: log_typevalue: meshcentral_failed_authstatics:- meta: servicevalue: meshcentral- meta: userexpression: "evt.Parsed.username"- meta: source_ipexpression: "evt.Parsed.source_ip"- target: evt.StrTimeexpression: evt.Parsed.timestamp
Sign in to see the Security Engines that run this log parser, the version they run and whether it was modified locally.
Parser for Meshcentral Auth Logs.
You need to add the following in the Meshcentral config file before Meshcentral starts logging: "authLog": "/opt/meshcentral/meshcentral-data/auth.log"
1---2filenames:3 - /opt/meshcentral/meshcentral-data/auth.log4labels:5 type: meshcentral