Skip to content

Commit 67a01f8

Browse files
authored
Merge branch 'main' into deploy-manage-overview
2 parents 97919fa + 7adc5cf commit 67a01f8

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Filesource provider [filesource-provider]
2+
3+
Watches for changes of specified files and updates the values of the variables when the content of the files changes.
4+
5+
This allows information from the filesystem to be used as variables in the {{agent}} configuration. This information is allowed only when the provider has been explicitly configured to read this information from the disk. The policy cannot just read any file, it has to be explicitly configured to allow it.
6+
7+
For example, the following configuration watches for changes to `file1`:
8+
9+
```yaml
10+
provides:
11+
filesource:
12+
sources:
13+
file1:
14+
path: ./file1
15+
16+
inputs:
17+
- id: filestream
18+
type: filestream
19+
paths:
20+
- ${filesource.file1}
21+
```

reference/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ toc:
125125
- file: ingestion-tools/fleet/agent-provider.md
126126
- file: ingestion-tools/fleet/host-provider.md
127127
- file: ingestion-tools/fleet/env-provider.md
128+
- file: ingestion-tools/fleet/filesource-provider.md
128129
- file: ingestion-tools/fleet/kubernetes_secrets-provider.md
129130
- file: ingestion-tools/fleet/kubernetes_leaderelection-provider.md
130131
- file: ingestion-tools/fleet/local-dynamic-provider.md

0 commit comments

Comments
 (0)