New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in_tail: follow symlink target change #1118
Comments
Hello! Got the same issue with 1.2.2 on CentOS 7. Is there any chance to fix this? As workaround I use cron for restart td-agent-bit every 15 minutes... |
Hi. Got the same issue with 1.3. Is there any chance to fix this? |
…oth new file and old file
…ink changes, fluent-bit tails both new file and old file.(fluent#1118)
…ink changes, fluent-bit tails both new file and old file.(fluent#1118) Signed-off-by: tanwei04 <tanwei04>
…ink changes, fluent-bit tails both new file and old file.(fluent#1118) Signed-off-by: wtan825 <wtan825@163.com>
…ink changes, fluent-bit tails both new file and old file.(fluent#1118) Signed-off-by: wtan825 <wtan825@163.com>
@bmalynovytch in our case, even file is not rotated fluentd recognize it like rotated and tail the same log from head. Is there any relation with this commits?
We can see that same files exist on target and existing lists. |
Same problem here. |
@edsiper Can I help you with that somehow? |
Also looking for a workaround. :) |
we have a couple of improvements on in_tail that will land in v1.4.6 (few days) and v1.5 (couple of weeks). Right now the team is working on porting the fixes and adjustments for Windows we will have an update soon |
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 |
This issue was closed because it has been stalled for 5 days with no activity. |
@edsiper I think this issue should stay opened. Would you mind reopening it ? 🙏 |
+1 issue |
Bug Report
Summary
in_tail doesn't follow target symlink changes
To Reproduce
/opt/my_app/releases/current
to be a symlink of/opt/my_app/releases/v1.2.3
/opt/my_app/releases/v1.2.4
Expected behavior
in_tail should probe regularly (or listen for event) to check if rotation occurred and reload it's FD to point to the right file.
Your Environment
Fluent Bit v1.0.4
Linux Ubuntu 16.04
Additional context
Using symlinks to handle running version of an application with its logs stored in a subfolder prevents the log collection to continue working after release a new version without restarting agent, which could cause privilege troubles as the releasing user may not have enough privileges to trigger a restart of the agent.
The text was updated successfully, but these errors were encountered: