diff --git a/website/cue/reference/components/sources/file.cue b/website/cue/reference/components/sources/file.cue index 37724c605a5ed..ae6d8ba7c49b4 100644 --- a/website/cue/reference/components/sources/file.cue +++ b/website/cue/reference/components/sources/file.cue @@ -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. """ } diff --git a/website/cue/reference/urls.cue b/website/cue/reference/urls.cue index 079d8378e2696..a4a3d73928bcf 100644 --- a/website/cue/reference/urls.cue +++ b/website/cue/reference/urls.cue @@ -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"