cscli parsers install crowdsecurity/stirling-pdf-logs
Currently this parser only parses authentication failure logs
Example acquisition:
filenames:
- /path/to/logs/invalid-auths.log
- /path/to/logs/info-*.log
labels:
type: stirling-pdf
1onsuccess: next_stage2debug: false3filter: "evt.Parsed.program == 'stirling-pdf'"4name: crowdsecurity/stirling-pdf-logs5description: "Parse Stirling PDF logs"6nodes:7 - grok:8 pattern: "%{TIMESTAMP_ISO8601:timestamp} %{WORD:log_level} .*CustomAuthenticationFailureHandler \\[.*\\] Failed login attempt from IP: \\[?%{IP:source_ip}\\]?"9 apply_on: message10 statics:11 - meta: log_type12 value: failed_authentication13statics:14 - meta: service15 value: stirling-pdf16 - meta: source_ip17 expression: "evt.Parsed.source_ip"18 - target: evt.StrTime19 expression: evt.Parsed.timestamp