Hello,
I’ve installed Crowdsec on Docker and it’s receiving logs from my Logstash instance. My logs are coming from our own SaaS and it has a custom format so I created a parser and it works very well. Now I’m stuck trying to match my scenario alerts with the blocklist I subscribed my engine. I wan’t my scenario to check in any of subscribed blocklists if the meta source_ip is in a blocklist and throw an alert only if it is. Right now, my blocklist don’t seem to throw any alert at all. Am I missing something ?
I want to be able to subscribe to any blocklist without needing to edit my configuration files every time to apply the changes if possible.
Here are my parser and my scenario :
filter: "evt.Line.Raw startsWith '{'"
debug: true
onsuccess: next_stage
name: dreamon/logstash-logs
description: "Parse Logstash logs"
statics:
- parsed: json_parsed
expression: UnmarshalJSON(evt.Line.Raw, evt.Unmarshaled, "message")
- meta: source_ip
expression: evt.Unmarshaled["message"]["source"]["ip"]
- meta: source_port
expression: evt.Unmarshaled["message"]["source"]["port"]
- meta: timestamp
expression: evt.Unmarshaled["message"]["@timestamp"]
type: leaky
name: "dreamon/panicsafe-logs"
description: "Panicsafe Logs"
filter: "true"
capacity: 50
leakspeed: "1h"
labels:
service: custom
type: single-event
remediation: true
Thanks for the help ![]()