sudo cscli collections install xs539/bookstackInstalls 1 parser and 1 scenario.
View bookstack →sudo cscli parsers install xs539/bookstack-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_stagefilter: "Lower(evt.Parsed.program) in ['bookstack']"name: xs539/bookstack-logsdescription: "Parse bookstack logs"pattern_syntax:BOOKSTACK_USER: "(%{EMAILADDRESS}|%{USERNAME})"nodes:- grok:pattern: '%{NGINXERRTIME:timestamp}%{GREEDYDATA}Failed login for %{BOOKSTACK_USER:target_user}%{GREEDYDATA}client: %{IPORHOST:remote_addr}'apply_on: message- grok:pattern: '\[%{APACHEERRORTIME:timestamp}\] \[php:%{WORD:log_level}\] \[pid %{INT:pid}\] \[client %{IPORHOST:remote_addr}(:%{INT:remote_port})?\] Failed login for %{BOOKSTACK_USER:target_user}(, referer: %{GREEDYDATA:http_referer})?'apply_on: messagestatics:- meta: log_typevalue: bookstack_failed_auth- meta: target_userexpression: evt.Parsed.target_user- meta: servicevalue: bookstack- target: evt.StrTimeexpression: evt.Parsed.timestamp- meta: source_ipexpression: evt.Parsed.remote_addr
Sign in to see the Security Engines that run this log parser, the version they run and whether it was modified locally.
Parser for Bookstack logs
You will need to enable Failed Access Logging (off by default)
1LOG_FAILED_LOGIN_MESSAGE="Failed login for %u"
Example acquisition config:
1---2filenames:3 - /var/log/bookstack.log4labels:5 type: bookstack6---