loggie-io / loggie

A lightweight, cloud-native data transfer agent and aggregator
https://loggie-io.github.io/docs-en/
Apache License 2.0
1.26k stars 168 forks source link

feat: Add kata runtime support for log collection #554

Closed wchy1001 closed 1 year ago

wchy1001 commented 1 year ago

Currently, when rootFsCollectionEnabled is enabled, and the containerRuntime is containerd. loggie collects container logs by accessing the mapped host directory("/proc/{pid}/root"), However, when the containerd's runtime is not the "runc", this way may not work. this PR adds support specifically for kata as the containerd runtime.

Proposed Changes:

This PR adds support specifically for kata as the containerd runtime. as the kata runtime, we are able to collect logs from /run/kata-containers/shared/sandboxes//shared//rootfs in the corresponding hosts.