Open blotus opened 3 years ago
@blotus is the log configuration only for crowdsec
or including the cli
?
@nanikjava To answer your question it would be crowdsec agent itself than the CLI since the cli already support -o json
flag
This would be a nice feature to have because structured logging is quite important for a security tool.
I support the idea
This improvement will be added with this one https://github.com/crowdsecurity/crowdsec/pull/2941
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).