fluent-bit
fluent-bit copied to clipboard
Does fluent-bit support collecting logs of files in a specific directory inside a container
One of my current requirements is to collect logs of files in a specific directory inside a container, and I'm not sure which plugin to use.
I'm currently thinking of using the hostpath approach, but when my Pod is restarted (assuming my app is down for some reason and I need the previous logs for problem troubleshooting) the old logs get overwritten.
Yes, you obviously need to mount them via a shared volume to a Fluent Bit container or put Fluent Bit inside your container. A sidecar container may be a better approach then trying to use a separate deployment or daemonset.
It's not really a Fluent Bit issue though, more a general architecture question.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.
This issue was closed because it has been stalled for 5 days with no activity.