Open lalbers opened 4 years ago
This would likely be an easy fix looking at: https://github.com/anchore/anchore-engine/blob/64a7283e2bb9d6271bb048a5f239bd660d150e5d/anchore_engine/subsys/logger.py#L72
Having json fields for i.e. service, name, levelname, ... would be awesome for filtering on those.
+1 to this request
+1 to this request
Still keen to implement this, but unlikely to make the 0.7.0 release. I'll update the issue if it does get included.
Unfortunately, need to push this to the next release. There is a PR pending for this so we've made good progress and want to get it in the next feature release after 0.9.0 since it will likely impact the configuration and log output behavior of the system.
Feature Request
Add a structured JSON based formatter for logging Add structured JSON as alternative log format, which can be enabled via config/env. This cloud make the processing of logs (especially filtering) much easier. By mapping JSON fields, it allows a better integration in ELK or similar.