-
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 - inode re-use on OS leading to loss of beats data #1341
Comments
This relates to #1022. Once the registry is maintained and deletions removed it should fix things like this. |
Thank you, also want to add that you guys should add a epoch timestamp or something similar to the registry so that ignore_older can be properly assessed. |
@billmurrin As far as I understand, the script you wrote solved your issue? There is also an other issue related to log rotation and overwriting states that is fixed here: #1375 But in your case there is not log rotation? |
I have not cron'd the script I wrote to run automatically so I am still seeing the inode re-use issues periodically, but still far less than before. The log rotation in my case is the archival of the logs. The logs, i guess you could say, rotate out when they get compressed/gzip'd. |
Also see # 271 edit: yes - elastic/filebeat#271 |
@morganchristiansson I assume you were referring to https://github.com/elastic/filebeat/issues/271 ? |
@billmurrin This problem should now be solvable through |
I have two related Elastic beats discussions on the forum.
https://discuss.elastic.co/t/deleting-filebeat-registry-file/46112
https://discuss.elastic.co/t/old-file-with-new-name-found/41766/19
The bottom line is that the way the filebeat registry persists data is causing data loss on my platform.
I have a solution that is providing a log every 10 minutes, that data is archived/compressed hourly so at any given time there are only a handful of uncompressed available until the next time it compresses. Since a log is generated every 10 minutes, this is alot of logs per day and the inodes are getting re-used.
The registry retains a notice of all logs since I started running filebeat. This is causing an inode re-use to get detected as an updated file in which either three different things (haven't pinpointed the why) are happening.
Here are a few examples from my blog post
This is mybeat log showing an example of when it does not send any data.
Here is the corresponding inode's from the registry file:
And here is an example of when the file restarts at offset zero
Here are the corresponding registry entries for that file:
After upgrading to 1.2, I still see the same issue occurring. I have ignore_older and close_older set to one hour but it doesn't matter because it believes the file is an update of something it already processed. This issue makes the fidelity of the data too low for me to recommend the solution at this point. I cannot operationalize something with 10 minute gaps in it. Appreciate any help you can provide on getting this issue resolved. Mahalo.
The text was updated successfully, but these errors were encountered: