W
W
wawa2019-06-15 21:45:04
RSYSLOG
wawa, 2019-06-15 21:45:04

Why do I see the stdout of the app from the container in /var/log/syslog of the host, even though I haven't configured anything?

The scheme is like this.
The application writes logs to stdout. It is running in a docker container. That, in turn, is run through systemd.
As a result, I see the logs /var/log/syslog of the host.
But I didn't set anything. Everything is default. It is not clear which path works. Can you tell me what mechanism works? Is systemd sending logs or docker?
Well, how is it more correct to set up logging (what is the path and settings?), Taking into account multiline logs?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2019-06-16
@chupasaurus

Systemd will redirect the container's stdout and stderr to the system log if run without the option-d/--detach

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question