-
QuestionHi! As I can see, the only way to get journald source working in distroless image is to mount journalctl binary and libraries required for its launch (additionally to the existing volumes in default daemonset provided at https://github.com/vectordotdev/vector/blob/master/distribution/kubernetes/vector-agent/daemonset.yaml). Vector ConfigNo response Vector LogsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You are reading it correctly for the distroless image. The The generated agent DaemonSet mounts host paths such as So with Mounting the journal files alone is not enough for this source if the executable cannot be started. If you stay with distroless, I would make |
Beta Was this translation helpful? Give feedback.
You are reading it correctly for the distroless image.
The
journaldsource does not read the journal directly from Vector code. It starts ajournalctlsubprocess. The source has ajournalctl_pathoption, defaults to looking forjournalctl, first runsjournalctl --version, then starts it with arguments like:The generated agent DaemonSet mounts host paths such as
/var/log,/var/lib,/host/proc, and/host/sys, but it does not mount ajournalctlexecutable. Thedistroless-libcimage Dockerfile also only copies Vector, Vector config/share/doc files,/var/lib/vector, and the staged zlib dependency into a distroless base; it does not install systemd t…