Closed
Description
Component(s)
receiver/filelog
Describe the issue you're reporting
Currently, we are globbing and ignoring any IO errors, which is the default behavior of the glob library we are using. However, this means that any errors that are gotten here are swallowed silently by the receiver.
Instead, I think it would be ideal if we used the WithFailOnIOErrors
option (https://pkg.go.dev/github.com/bmatcuk/doublestar/v4#WithFailOnIOErrors) initially, and if fails, log a warning (or maybe even just a debug level log?), and fall back to using the current behavior.
This would help to debug instances where globbing is actually failing (can't access dir because of permissions, for instance), and silently leads to files not being picked up by the receiver.