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
21 changes: 21 additions & 0 deletions reference/ingestion-tools/fleet/filesource-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Filesource provider [filesource-provider]

Watches for changes of specified files and updates the values of the variables when the content of the files changes.

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.

For example, the following configuration watches for changes to `file1`:

```yaml
provides:
filesource:
sources:
file1:
path: ./file1

inputs:
- id: filestream
type: filestream
paths:
- ${filesource.file1}
```
1 change: 1 addition & 0 deletions reference/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ toc:
- file: ingestion-tools/fleet/agent-provider.md
- file: ingestion-tools/fleet/host-provider.md
- file: ingestion-tools/fleet/env-provider.md
- file: ingestion-tools/fleet/filesource-provider.md
- file: ingestion-tools/fleet/kubernetes_secrets-provider.md
- file: ingestion-tools/fleet/kubernetes_leaderelection-provider.md
- file: ingestion-tools/fleet/local-dynamic-provider.md
Expand Down