-
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 stops processing log entries after "Read line error: file inactive" #1974
Comments
The If it's indeed the same bug, there are two things that you could try:
@ruflin might have more insights on this. |
If I understand this right, filebeat gets stuck either at the offset when the file got rotated or an offset when the The state part was completely rewritten in Filebeat 5.0.0-*. It would be really helpful if you could try the 5.0.0 snapshot to see if this solves the problem: https://beats-nightlies.s3.amazonaws.com/index.html?prefix=filebeat/ |
As we can see from the logs there were at least one event sent after log rolling, however I can try the latest 5 snapshot to see if the problem appear again within a couple of days. |
@draenor That would be great. Keep me posted. |
I've been running version
The logs from
And the last log entry from version
Thoughts
|
It could be that you hit the following issue which was fixed in 5.0: #1954 About the error above: Not 100% sure where this error is coming from. Some Googleing revelaed it could be Windows related. @andrewkroh Do you know here more? Thanks for doing all the testing. |
With the setting The |
@draenor Thanks for testing. I have the suspicion that the crawling hangs because of the Return channel not receiving data: https://github.com/elastic/beats/blob/1.3/filebeat/crawler/prospector.go#L461 This code does not exist anymore in 5.0. I will try to create some test cases to reliably reproduce this locally to find a fix. |
@draenor I was playing around with this and tried to fix it in 1.3. Unfortunately the fix introduced other issues which is the reason we never merged #2274 To fix the issue completely the state rewrite which was done for 5.0 is needed. I'm closing this issue as I think it is fixed in 5.0, but please reopen if you discover it also in 5.0 or need more details. Thanks a lot for investigating this in detail and providing all the data. |
Filebeat stops processing logs after a while
in combination with log rolling, however I'm not sure if exclusively related to log rollingIt seemed to happen unrelated to log rolling today (the other harvesters were still fine).1.2.3
.Issue description
Filebeat log:
filebeat.yml
If it matters, the crawled logs are generated and rolled by the java
logback
library.The text was updated successfully, but these errors were encountered: