How to send container logs to journald when using containerd CRI

143 Views Asked by At

So far we have been collecting logs from our Kubernetes containers on node level from systemd-journald in a containerd+Dockershim environment. But now we are migrating to away from Dockershim and I cant find a setting which tells containerd to send container logs to journald instead of /var/log/containers.

The following sources make me feel it should be possible but I dont understand how to put in practice:

I tryied running containerd with the default config and looked for refenreces online but couldn't find any. Currently the container log files are created under /var/log/containers and just containerd systemd service logs are send to journald.

It there a containerd config setting I should put in place? Or alternatively, how to set up a log plugin?

0

There are 0 best solutions below