Support read logs from fluentd/journal log driver
What is the problem you're trying to solve
For now, we just support one-way write process for fluentd/journal log driver, but in some circumstances, the user may need to use nerdctl logs command to fetch the log.
So we can write to the driver destination and a local JSON file for the log driver simultaneously, and the nerdctl logs command can fetch the log from the local log file
Describe the solution you'd like
- [ ] fluentd
- [ ] journal
- [ ] syslog after https://github.com/containerd/nerdctl/issues/1353 @yuchanns
Additional context
No response
count me in
I started a PR around this https://github.com/containerd/nerdctl/pull/1115/files a few days ago. Unfortunately, I didn't have time to finish it. @yuchanns this may inspire you :)
I can take the journald driver job😃
@Zheaoli Should this be fluentbit and not fluentd? Ref: https://github.com/containerd/nerdctl/commit/8bf043a52b5d64a9a7a38103427c884e4a542271