Viewing Application Logs
Dokku application logs are accessible via a command line interface, directly on the server, or on your local machine if you've installed the Dokku Client.
Tailing application log for a specific application:
dokku logs my-app -t
Viewing the last 100 lines of the log:
dokku logs my-app -n 100
For new environments provisioned after 9/1/22, a file-based copy of recent Dokku application logs can be found under /var/log/dokku/apps. These logs are automatically copied to your S3 bucket on a daily basis. If you'd like to enable this feature for an older environment, please create a support ticket.
Viewing Nginx Logs
Nginx is used as a reverse proxy that routes traffic to Dokku app containers. Nginx logs can be found in the /var/log/nginx directory.
Viewing Archived Logs
Application logs are automatically moved to S3 for permanent storage. See Accessing Archived Logs for details.