-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Filebeat] Implement a more stable file identifier #34419
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
@nimarezainia: do you know users facing this situation? |
~~ I am not aware, No. ~~ |
@belimawr if there's any opportunity for the user to test a fix for the inode problem that would be great. |
I edited the issue adding information about the inode reuse problem as well. So we have a broader scope here. |
Hi, we need this fix for the inode rotation issue. Please prioritize for that use case. |
Next step is to define the best way to fix this issue. |
Issue
Our current default implementation implementation for
file_identity
uses a device ID that is not unique in some situations. One situation is when using using LVM according to Red Hat Enterprise documentation. Another problem is the use of inodes, in some situations inodes can be reused, which will make Filebeat skip some lines or whole files.This issue is about exploring a more widely stable
file_identity
implementation for Filebeat and/or any Beat that requires it.EDIT: as much as possible, the solution should be working in 7.17.
Current fix idea
Add a new fingerprint file identity option based on a computed hash from the initial bytes in the file.
The number of bytes to read should be configurable.
Definition of done
Target: 8.9 and 7.17.11
The text was updated successfully, but these errors were encountered: