Skip to content

Commit 7adc5cf

Browse files
authored
Add Filesource provider to Fleet & Agent docs (#672)
Adds the `Filesource` provider to the Fleet & Agent docs. See: [Preview](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/672/reference/ingestion-tools/fleet/filesource-provider) (in the V9.0 docs, V3 docs system) Closes: elastic/ingest-docs#1712 --- <img width="997" alt="Screenshot 2025-03-05 at 3 55 55 PM" src="https://github.com/user-attachments/assets/90735a51-658a-458d-8129-994ce358d9a0" />
1 parent 86afd8e commit 7adc5cf

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)