Logs

Read the last lines of any container, or follow them live, without a terminal.

logs
Live logs of a container in D2HA, with errors and warnings in colour
Logs, live, with levels in colour

Opening the logs

On the Containers page, the Logs button of a row opens its logs. Every line starts with the time Docker recorded it.

The controls

ControlWhat it does
LinesHow many of the last lines to show: 100, 300 (default), 1000 or 5000
LiveFollows new lines as they arrive. It turns itself off after 30 minutes: press it again.
Filter linesShows only the lines that contain the text
Wrap long linesWraps lines instead of scrolling sideways
DownloadSaves the lines on screen as a .log file named after the container and the time
Go to the endJumps to the newest line

Levels in colour

D2HA colours the lines it recognises:

ColourLines that contain
RedERR, ERROR, FATAL, CRITICAL, PANIC, level=error, [error], error:, a traceback or an exception
YellowWRN, WARN, WARNING, level=warn, [warning], warning:

A level written as a word wins: a warning line that carries an error= field stays yellow.

Good to know

Logs are for the web interface only. The API token that Home Assistant uses cannot read them.

Something wrong or missing on this page? Open an issue.