-
Notifications
You must be signed in to change notification settings - Fork 980
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
Logs are being lost from a service running on Kubernetes. #1545
Comments
I guess this is related to fluent/fluentd#4693 ... |
@slopezxrd I've experienced a similar issue that you can read about fluent/fluentd#4693. I have temporarily worked around the issue by increasing the maximum log file size (the default is 10MB) on the kubelet. Increasing the size will reduce the frequency logs are rotated. I suspect the issue is related to inode tracking when logs are rotated quickly and often. I've noticed that when when logs go missing there's usually a warning in the fluentd logs that says |
@jicowan Increse the size of the file is not a solution because it´s only pospone the error to another moment, the problem it´s that fluentd read slower than the logs are written in the files, as i can see in another tests, and omit some files in the middle. Increse the size to reduce the amount of files is a good option, but in kubernetes where you have multiples instances run at once you have multiples logs, and rotations. While i don´t have another solution i increase the size to mitigate the impact in my environment Thank you so much |
Describe the bug
To Reproduce
Fast rotation speed in logs file
Expected behavior
Increase the speed of log processing so that this offset with the rotation of them does not occur.
- In case that offset does occur (temporarily), although it inserts behind, it inserts all traces.
Your Environment
Your Configuration
Your Error Log
Additional context
Tests performed, without success:
Observations:
When there is a large amount of logs, it is observed that the insertion in ELK is getting behind,
until it stops writing and writes those from a few minutes later.
The files rotate every few minutes (3-4 minutes).
In one of the tests performed, it was perceived that in the file of positions there were two entries for the same file identifier.
One of the new files generated had been created with the same identifier as one that had been deleted (but was maintained
in the file of positions)
The text was updated successfully, but these errors were encountered: