diff --git a/engine/admin/logging/journald.md b/engine/admin/logging/journald.md index f65e158ad523..741b7a854fed 100644 --- a/engine/admin/logging/journald.md +++ b/engine/admin/logging/journald.md @@ -100,6 +100,17 @@ to return the log messages in JSON format. $ sudo journalctl -o json CONTAINER_NAME=webserver ``` +### View logs for a container with a TTY enabled + +If TTY is enabled on a container you may see `[10B blob data]` in the output +when retrieving log messages. +The reason for that is that `\r` is appended to the end of the line and +`journalctl` doesn't strip it automatically unless `--all` is set: + +```bash +$ sudo journalctl -b CONTAINER_NAME=webserver --all +``` + ## Retrieve log messages with the `journal` API This example uses the `systemd` Python module to retrieve container