podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

Unable to identify which container the podman-compose logs in /var/log/messages came from

Open mnsmithuk opened this issue 3 years ago • 2 comments

Hi,

I have a server with multiple containers created with multiple podman-compose yml files.

Logs are replicated in /var/log/messages which is great, however there is no tags on the log message in /var/log/messages to identify which container sent the log.

How do I include a container name or a service name to the logs that go to /var/log/messages ?

mnsmithuk avatar Mar 04 '21 11:03 mnsmithuk

I am not sure how this is supposed to work, you are talking about stdout/stderr showing up in /var/log/messages? Podman has no control over this.

rhatdan avatar Apr 26 '21 13:04 rhatdan

can we ask podman to prefix output lines with custom string

just like

podman start -a web | sed -re 's#^#WEB: #'

muayyad-alsadi avatar May 17 '21 12:05 muayyad-alsadi