-
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 5.0.0-beta1 is failing to ship a portion of a file. #2697
Comments
Few questions:
As the above files are already rotated 2-3 times I kind of expect that the reading finished and no new harvesters must be started. Or can it happen that after 5 minutes still data can be added to rotated files? |
No sorry.
Multiple files
I assume you mean the logbeat logfile? No I did not
logstash
No
Data is not added to the files after rotation. I think you are right and that the problem is that no new harvester is started for the file. Sorry I can not provide you with everything you asked. For if I see it again I will do a better job collecting data. |
Thanks for all the answers. It would be really great if you could provide some filebeat log output next time this happens. Or if you manage to reproduce this in some way, the steps to reproduce it would be also very useful. |
I think we can close this, it's really old. |
I discovered an issue where I had missing log messages in Elasticsearch. I found the missing messages in a local log file. I found the file in question in the registry and discovered that the file had not been completely shipped. i.e. the registry offset was less than the file's size.
Here is my config
Note these files are being rotated (renamed) by log4j so we are seeing Filebeat logs like.
The weird thing is that I see no new harvesters being started.
Restarting Filebeat caused new harvesters to be created for the renamed files and they were entirely shipped.
The text was updated successfully, but these errors were encountered: