Closed toyaser closed 2 years ago
and i tried all different versions of v1.12 to no avail.
Could you list up all v1.12.x versions you tried?
Please see versions below, and I also updated the issue: v1.12.0-1.0 v1.12.3-1.0 v1.12.4-1.0 v1.12.4-1.1 v1.12-1 (this was v1.12.4-1.1 at the time)
I am having the same issue with v1.14.0-1.1.
Again will not will not read updates to files it is monitoring.
Ok, I think I found the issue. Has the pos file format changed between version 11 of fluentd and 12 and above?
Prior to that version. Updating fluentd and pointing to the same pos file everything worked well with no issues, but once i updated to the 12+ it no longer works.
This is a problem as i would like to do a rolling update of my fluentd and i cannot modify my pos file.
Below is my pos file from version 1.11.5:
/mnt/sta-console/sta.20210917.log 0000000000006830 00000000000007ac
/mnt/sta-console/sta.20210919.log 0000000000002946 0000000000000752
/mnt/sta-console/sta.20210920.log 000000000000d496 00000000000002cb
/mnt/sta-console/sta.20210921.log 000000000000cb00 00000000000003de
/mnt/sta-console/sta.20210922.log 000000000001847a 000000000000078d
/mnt/sta-console/sta.20210923.log 00000000000103d7 0000000000000749
/mnt/sta-console/sta.20210924.log 0000000000008790 0000000000000789
And here is my pos file from version 1.14.0
/mnt/sta-console/sta.20210924.log 00000000000003fc 000000000000075f
Ok, I think I found the issue. Has the pos file format changed between version 11 of fluentd and 12 and above?
No, it's not changed, some bug fixes were made though (e.g.: remove nonexistent file entries on startup compaction). Does it work correctly when you remove the old pos file?
enable_watch_timer false
enable_stat_watcher true
I got it, https://github.com/fluent/fluentd/pull/3541 is the cause.
https://github.com/fluent/fluentd/pull/3541 was merged and shipped as v1.14.3
I have an issue with the exact same conf reading monitored files between docker fluentd v1.11.x and v1.12.x.
This is the conf:
I am currently using fluentd image fluent/fluentd:v1.11.5-1.0 and I tried all different versions of v1.12 (v1.12.0-1.0, v1.12.3-1.0, v1.12.4-1.0, v1.12.4-1.1 and v1.12-1, which was 1.12.4-1.1 at the time) to no avail.
When I turn on the logging for the newest versions, all I get is this:
The only time any changes to files are detected is on fluentd startup, after that no changes are detected and therefore nothing is shipped to elastic, but as soon as I switch back to the older version of fluentd everything starts working again and changes to monitored files are immediately picked up.
Is there something wrong with my conf that is causing the issue with the newer version of fluentd?
I also tried adding
follow_inodes true
but it made no difference.