Logging
All stdout and stderr from your app's processes is captured by dokku's container runtime. ownstack remote logs tails them; for long-term retention or external analysis, set up a log drain.
Tailing live
$ ownstack remote logs --app=<app> --tail 200
$ ownstack remote logs --app=<app> --follow # live stream
$ ownstack remote logs --app=<app> --ps=worker --tail 100 # filter to one process type
Build logs
Build/release logs are different from runtime logs — they're captured per-deployment:
$ ownstack remote deploy-log --app=<app> [--deployment=ID] [--follow]
What gets logged
Anything your app writes to stdout or stderr. Don't write to local files — they go away when containers restart. Log to stdout, let drains and retention happen elsewhere.
Retention
Dokku rotates container logs at 100 MiB per file with 5 files retained per process. That's typically a few days of logs for a busy app. For longer retention, drain to an external service.
External drains
OwnStack supports the log drain pattern for shipping logs to Papertrail, Datadog, Splunk, or any syslog/HTTPS endpoint.