Log Formats
Configure structured log output for self-hosted containers.
Deepgram self-hosted containers support four log output formats. Use the --log-format CLI flag to select the format that best fits your logging infrastructure.
This flag applies to all self-hosted container images: API, Engine, License Proxy, and Billing.
Available Formats
Configuration
The log format is set as a CLI flag in the container’s command. It is not configured via TOML. --log-format is a top-level option, so it must appear before the serve subcommand — appending it after serve causes the container to exit with error: unexpected argument '--log-format' found.
Docker Compose
Kubernetes (Helm)
In a Helm values override, set logFormat for each component:
logFormat accepts full, compact, pretty, or json. Leave it unset to use the container’s default (full). The chart validates the value and renders the flag in the correct position in each container’s arguments; an unrecognized value fails at template time rather than crash-looping the pod. Requires chart version 0.45.0 or later — earlier versions ignore logFormat silently, with no error and no change to log output.
The API container also accepts a legacy --json flag and JSON environment variable that force JSON output. Do not combine either with --log-format set to a format other than json — the container exits with an error at startup. The Helm chart rejects this combination at template time.
Example Output
Full (default)
Compact
Pretty
Json
Availability
The --log-format flag is available in release 260319 and later on all self-hosted container images.
What’s Next
- Metrics Guide - Monitor your deployment with Prometheus metrics
- Status Endpoint - Check node health and readiness