The kubernetes() source collects container logs managed by the Kubelet. The kubernetes() source is available in syslog-ng OSE version 3.37 and later.

By default, it reads the /var/log/containers folder and extracts both Kubernetes metadata and the log content.

Declaration

kubernetes(
    base-dir("<pathname>")
);

Updated: