crowdsecurity / crowdsec

CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
https://crowdsec.net
MIT License
8.98k stars 466 forks source link

Improvement/Support JSON log output #799

Open blotus opened 3 years ago

blotus commented 3 years ago

We use logrus to handle all of crowdsec logs. As logrus natively supports a JSON formatter, we should allow users to configure which output format they want (either plaintext or JSON).

nanikjava commented 3 years ago

@blotus is the log configuration only for crowdsec or including the cli ?

LaurenceJJones commented 1 year ago

@nanikjava To answer your question it would be crowdsec agent itself than the CLI since the cli already support -o json flag

sharkymcdongles commented 1 year ago

This would be a nice feature to have because structured logging is quite important for a security tool.

ScreNN commented 1 year ago

I support the idea

victoredvardsson commented 6 months ago

This improvement will be added with this one https://github.com/crowdsecurity/crowdsec/pull/2941