fluent-plugin-systemd icon indicating copy to clipboard operation
fluent-plugin-systemd copied to clipboard

The deleted files are still occupied

Open xidiandb opened this issue 4 years ago • 5 comments

fluentd    2472                  root  125r      REG              252,1 134217728     539602 /var/log/journal/a87d37f9c4d74e9eb672b97b5dd0c818/system@d059ec38963543fb95c6390453c1f247-0000000007057712-00059fa76e02b10d.journal (deleted)
fluentd    2472                  root  159r      REG              252,1 134217728     539602 /var/log/journal/a87d37f9c4d74e9eb672b97b5dd0c818/system@d059ec38963543fb95c6390453c1f247-0000000007057712-00059fa76e02b10d.journal (deleted)
fluentd    2472  2497            root  125r      REG              252,1 134217728     539602 /var/log/journal/a87d37f9c4d74e9eb672b97b5dd0c818/system@d059ec38963543fb95c6390453c1f247-0000000007057712-00059fa76e02b10d.journal (deleted)
fluentd    2472  2497            root  159r      REG              252,1 134217728     539602 /var/log/journal/a87d37f9c4d74e9eb672b97b5dd0c818/system@d059ec38963543fb95c6390453c1f247-0000000007057712-00059fa76e02b10d.journal (deleted)
fluentd    2472  2498            root  125r      REG              252,1 134217728     539602 /var/log/journal/a87d37f9c4d74e9eb672b97b5dd0c818/system@d059ec38963543fb95c6390453c1f247-0000000007057712-00059fa76e02b10d.journal (deleted)
fluentd    2472  2498            root  159r      REG              252,1 134217728     539602 /var/log/journal/a87d37f9c4d74e9eb672b97b5dd0c818/system@d059ec38963543fb95c6390453c1f247-0000000007057712-00059fa76e02b10d.journal (deleted)
fluentd    2472  2503            root  125r      REG              252,1 134217728     539602 /var/log/journal/a87d37f9c4d74e9eb672b97b5dd0c818/system@d059ec38963543fb95c6390453c1f247-0000000007057712-00059fa76e02b10d.journal (deleted)
fluentd    2472  2503            root  159r      REG              252,1 134217728     539602 /var/log/journal/a87d37f9c4d74e9eb672b97b5dd0c818/system@d059ec38963543fb95c6390453c1f247-0000000007057712-00059fa76e02b10d.journal (deleted)

I'm using the latest version 1.0.2 and systemd-journal is 1.3.3

xidiandb avatar Mar 04 '20 09:03 xidiandb

When I upgraded systemd-journal to 1.4.1 the question still exist. Why journal.close didn't work.

xidiandb avatar Mar 05 '20 08:03 xidiandb

fluent-plugin-journal can solve the problem

xidiandb avatar Jun 11 '20 06:06 xidiandb

Thanks for the info @xidiandb are you interested to open a PR with your changes?

errm avatar Apr 22 '21 16:04 errm

Thanks for the info @xidiandb are you interested to open a PR with your changes?

sure,I will rework my rough code and submit a PR

xidiandb avatar Apr 23 '21 07:04 xidiandb

I am also thinking that this approach might help with #79, if we can think of a way to distrabute the files amongst workers then perhaps we can enable multi worker support ...

errm avatar Apr 24 '21 01:04 errm