You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[sources.files]
type = "file"include = ["*.log"]
exclude = ["{foo,bar}.log"]
[sinks.console]
inputs = ["files"]
type = "console"encoding.codec = "text"
Expected Behavior
The vector file source ignores foo.log and bar.log.
Actual Behavior
Files foo.log and bar.log are ingested.
Additional Context
The exclude_patterns currently relies on glob::Pattern which does not support curly-brace patterns. The globwalk crate used for include_patterns doesn't provide any means to just pattern match without walking the FS.
Proposed approach:
GlobWalker internally usesignore::Override, and supports addingpatterns to the ignore::overrides::OverrideBuilder. The OverrideBuilder supports negating matches by prepending the glob with a !.
Vector Version
Vector Configuration File
Expected Behavior
The vector file source ignores
foo.log
andbar.log
.Actual Behavior
Files
foo.log
andbar.log
are ingested.Additional Context
The
exclude_patterns
currently relies onglob::Pattern
which does not support curly-brace patterns. Theglobwalk
crate used forinclude_patterns
doesn't provide any means to just pattern match without walking the FS.Proposed approach:
GlobWalker
internally usesignore::Override
, and supports addingpatterns
to theignore::overrides::OverrideBuilder
. TheOverrideBuilder
supports negating matches by prepending the glob with a!
.References
The text was updated successfully, but these errors were encountered: