--color
Output the containers with different colors in the log.
--container,-c
By default, podmanpodlogs retrieves logs for all the containers available within the pod,
differentiated by the field container. However, there are use cases where the user wants to limit the log
stream only to a particular container of a pod. For such cases, -c can be used like podmanpodlogs-cctrNameorIDpodname.
--follow,-f
Follow log output. Default is false.
Note: When following a pod which is removed by podmanpodrm or removed on exit (podmanrun--rm...),
there is a chance that the log file is removed before podmanpodlogs reads the final content.
--latest,-l
Instead of providing the pod name or ID, use the last created pod. Note: the last started pod can be
from other users of Podman on the host machine. (This option is not available with the remote Podman
client, including Mac and Windows (excluding WSL2) machines)
--names,-n
Output the container names instead of the container IDs in the log.
--since=TIMESTAMP
Show logs since TIMESTAMP. The --since option can be Unix timestamps, date formatted timestamps, or Go
duration strings (e.g. 10m, 1h30m) computed relative to the client machine's time. Supported formats for
date formatted time stamps include RFC3339Nano, RFC3339, 2006-01-02T15:04:05,
2006-01-02T15:04:05.999999999, 2006-01-02Z07:00, and 2006-01-02.
--tail=LINES
Output the specified number of LINES at the end of the logs. LINES must be an integer. Defaults to -1,
which prints all lines
--timestamps,-t
Show timestamps in the log outputs. The default is false
--until=TIMESTAMP
Show logs until TIMESTAMP. The --until option can be Unix timestamps, date formatted timestamps, or Go
duration strings (e.g. 10m, 1h30m) computed relative to the client machine's time. Supported formats for
date formatted time stamps include RFC3339Nano, RFC3339, 2006-01-02T15:04:05,
2006-01-02T15:04:05.999999999, 2006-01-02Z07:00, and 2006-01-02.