-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Make close.on_state_change.removed: false
default for Filestream
#38523
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
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
Based on the documentation
|
Yes, it is enabled by default, hence this issue to make it disabled by default. With |
Either my English is bad, but the following sentence in your text says that the default value should be set to true, right? If not, you should modify the text accordingly.
I thought about setting
Do you know how Filebeat cleans up the registry afterwards? |
That was a typo 🤦♂ , it should state
Yes, if you do not disable the
Yes, I know. There are lots of details to it, but in short, for the Filestream input, there is a sort of garbage collector that runs periodically, it checks if the entry can be removed based on TTL, file removed, inactivity, etc. If all conditions are met, then the entry is removed from the registry. |
@belimawr do you know if it is possible to make this change on Fleet managed ECK Agents running Kubernetes Integration? |
Looking at the Kubernetes integration |
When log rotation happens at a high rate it can happens that Filebeat does not have enough time to read a file until the end before it is deleted. We are starting to see this happening in some Kubernetes clusters with a high log rate. One way to mitigate this is to set
close.on_state_change.removed: true
by default.Our docs warn that this can cause issues on Windows:
However this problem does not happen on Linux.
The text was updated successfully, but these errors were encountered: