fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

Does fluent-bit support collecting logs of files in a specific directory inside a container

Open ForcemCS opened this issue 1 year ago • 3 comments

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.

ForcemCS avatar Jan 17 '24 03:01 ForcemCS

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.

ForcemCS avatar Jan 17 '24 04:01 ForcemCS

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.

patrick-stephens avatar Jan 24 '24 07:01 patrick-stephens

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.

github-actions[bot] avatar May 01 '24 01:05 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar May 07 '24 01:05 github-actions[bot]