crowdsec icon indicating copy to clipboard operation
crowdsec copied to clipboard

Improvement/Support JSON log output

Open blotus opened this issue 3 years ago • 5 comments

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).

blotus avatar May 14 '21 08:05 blotus

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

nanikjava avatar Jul 25 '21 02:07 nanikjava

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

LaurenceJJones avatar Nov 17 '22 10:11 LaurenceJJones

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

sharkymcdongles avatar Apr 18 '23 11:04 sharkymcdongles

I support the idea

ScreNN avatar Jun 13 '23 14:06 ScreNN

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

victoredvardsson avatar Apr 16 '24 18:04 victoredvardsson