Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions website/cue/reference/components/sources/file.cue
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ components: sources: file: {
[Globbing](\(urls.globbing)) is supported in all provided file paths,
files will be autodiscovered continually at a rate defined by the
`glob_minimum_cooldown` option.

Vector uses the Rust [`glob` crate](\(urls.glob_crate)) for pattern matching.
Basic glob functionality should work as expected, including multiple wildcards in a
single path (e.g., `/opt/nomad/data/alloc/*/alloc/logs/monitor.std*.*`) and
recursive directory matching with `**` (e.g., `/var/lib/kubelet/pods/**/logs/*.log`).
See the [glob crate documentation](\(urls.glob_crate_pattern)) for complete syntax details.
"""
}

Expand Down
2 changes: 2 additions & 0 deletions website/cue/reference/urls.cue
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ urls: {
github: "https://github.com"
github_protected_branches: "https://help.github.com/en/github/administering-a-repository/about-protected-branches"
github_sign_commits: "https://help.github.com/en/github/authenticating-to-github/signing-commits"
glob_crate: "https://crates.io/crates/glob"
glob_crate_pattern: "https://docs.rs/glob/latest/glob/struct.Pattern.html"
globbing: "\(wikipedia)/wiki/Glob_(programming)"
glog: "\(github)/google/glog"
graphql: "https://graphql.org"
Expand Down
Loading