Repository navigation
Closed
Labels
epicCapability-level tracking issue with sub-issuesv1.0-proposedProposed for the v1 scope lock; awaiting triage
Description
Goal
Clean, persistent, operator-friendly monitoring of a Silo deployment. An operator should be able to answer "what happened, and when" after the fact — including across container recreations — and be able to focus on one subsystem without grepping the entire log firehose.
Why
Today Silo logs only to stderr. Under Docker that means:
- The only record of a run lives in the daemon's
json-filelog and is deleted on every container recreate (redeploy, image bump,compose upafter an edit). Post-incident investigation of anything before the last restart is impossible. - There is no persistent on-disk log without hand-editing the container entrypoint.
- There is no way to isolate one subsystem (jellycompat / transcode / scan / api) — every investigation is a grep over everything.
opslog already persists structured records to Postgres for the admin log viewer, but that is a DB-backed, query-oriented surface — not a durable file an operator can tail -f, ship to a log collector, or retain independently of the database.
Scope / deliverables
- Persistent file logging — opt-in
SILO_LOG_FILEsink with rotation, plus optional per-subsystem split files (SILO_LOG_SPLIT). Replaces the tee/FIFO entrypoint workaround. (PR feat(observability): persistent per-subsystem file logging via SILO_LOG_FILE #264) - Deployment wiring — set the env vars in the deployment
docker-compose.yml, remove the tee/FIFO entrypoint hack, document the resulting log paths. - Broaden per-subsystem tagging — ensure jellycompat / scanner / metadata / transcode roots carry a
componentattribute so split routing is exhaustive rather than best-effort. - Quiet vs. durable capture — decide whether
log_quietshould also suppress file records (current) or whether files should capture regardless (tee before the quiet filter). - Secret redaction for file/console sinks —
opslogredacts before DB persistence; console/file output is currently raw. Decide whether to extend redaction to these sinks. - (future) Structured log shipping / metrics endpoint for external monitoring stacks.
Non-goals (for now)
- Replacing the DB-backed
opslogadmin viewer. - A full metrics/tracing stack — this epic is about logs first.
Capability-level tracking issue. Proposed for v1 scope lock; awaiting triage.
Metadata
Metadata
Assignees
Labels
epicCapability-level tracking issue with sub-issuesv1.0-proposedProposed for the v1 scope lock; awaiting triage
Type
Projects
- StatusShow more project fieldsDone
Activity
darthShadow commentedon Jul 2, 2026
I would have preferred some discussion regarding this before committing any effort for it. If we are touching the monitoring/observability, it would have been a lot better if we just went the OpenTelemetry (https://opentelemetry.io/docs/) way rather than custom implementations and sinks.
feat(observability): OpenTelemetry logs+traces with secret redaction …
feat(observability): OpenTelemetry logs+traces with secret redaction …
CoffeeKnyte commentedon Oct 28, 2026
Closing: #290 replaced the plan here with OpenTelemetry. On
main(564b906):SILO_OTEL_ENABLEDorOTEL_EXPORTER_OTLP_*is set (internal/telemetry).componentattribute, andopslogfalls back to inferring one.internal/logredactredacts stderr and OTLP output with the same key listopsloguses.cmd/silo/metrics_listener.go, with a sample dashboard and alert rules indeploy/observability/.The file sink from #264 was left out on purpose:
docs/architecture/observability.md§ Log retention & rotation leaves rotation to the Docker log driver or the OTLP backend. The same doc lists the known gaps: lint can't check thatcomponentis present, redaction matches key names only, andlog_quietalso suppresses OTLP. Any of those can get its own issue if it needs work.