[Feature] Add option to output logs in JSON format for better observability integration #21194
DanielRamosAcosta
started this conversation in
Feature Request
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
Currently Immich outputs logs in plain text (NestJS default style). This makes it harder to integrate with observability stacks such as Grafana Loki + Promtail, ELK, or other log aggregators that rely on structured data.
It would be very helpful to have a configuration option (for example an environment variable like
IMMICH_LOG_FORMAT=json
) so that the application can emit structured JSON logs.At the moment the only alternative is to parse the plain text logs with regex in Promtail, which is brittle and error-prone. Metrics and tracing are useful, but JSON logs would provide a much cleaner and standard solution.
Structured JSON logging is a common practice in containerized environments (Kubernetes, Docker) and makes observability much simpler. Having native JSON logging would improve integration with:
Thank you for considering this feature!
Platform
Beta Was this translation helpful? Give feedback.
All reactions