-
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] - validate files before harvesting #40151
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
@VihasMakwana, I'm a bit confused here... We check if a file is a regular file right before opening it, which is indeed after resolving the symlink. But every single file we open for reading is will go through the validation at beats/filebeat/input/filestream/input.go Lines 293 to 296 in 032a4cf
beats/filebeat/input/filestream/input.go Lines 323 to 329 in 032a4cf
So even if the Regarding reporting the input status as degraded in this case, I believe it is the correct behaviour. The user has configured Filestream to ingest something that is not a regular file, thus the user should be notified of their error and the input should stay degraded until this is fixed. We just need to make sure the message returned to the user is clear enough so the can understand and act on it. |
@belimawr thanks for sharing your thoughts. I agree with you. Closing this. |
Current Issue
prospector.scanner.symlinks
.prospector.scanner.symlinks
and try to ingest a symlink insymlink -> non-regular file
manner, the irregular file will still be ingested.Describe the enhancement:
Describe a specific use case for the enhancement or feature:
filestream
input will remaindegraded
unless the user changes fixes the symlink and source file.The text was updated successfully, but these errors were encountered: