podman container logs

Latest response

I am running an EL8 server hosting podman containers created with podman-compose.
My goal is to collect the logs from the containers and podman in the host's rsyslog service.

I have the following in my rsyslog.conf to collect traffic from journald.

module(load="imuxsock"
SysSock.Use="on"
SysSock.Name="/run/systemd/journal/syslog"

None of the logs from my containers seems to be making it to /var/log/messages or /var/log/secure.
However using "podman logs" shows they are generating log data.

What pieces am I missing?
I find little on collecting podman container logs anywhere.

Responses

I have determined that while "podman run" and "podman create" will leverage the "--log-driver=journald" parameter, podman-compose ignores logging parameters. Thanks.