Description
The purpose and use-cases of the new component
For auditing purposes there is sometimes a need to audit file operations such as creation, writing and deleting the file. The purpose of this component would be to leverage libraries such as fsbroker, fsnotify or notify, to be able to extract information on file events (CREATE, RENAME, DELETE etc.).
The component would watch a file or directory, and then send metadata and the type of action performed on the file as logs.
This component is related to #39854 where file events + contents would be sent for auditing purposes.
Other architecture that provides a similar feature:
- Logstash (auditbeat) has a
File Integrity Module
which is providing a similar feature, where watches can be exported downstream or exported to a sink.
Example configuration for the component
An initial version would be support configurations to specify:
- which path(s) to watch,
- which operations to consider, and
- which paths to exclude from the watch.
receivers:
filewatch:
path: [/var/logs/pods]
operations: [CREATE, WRITE, REMOVE, RENAME]
exclude_files: []
Telemetry data types supported
Logs
Code Owner(s)
No response
Sponsor (optional)
No response
Additional context
I would be interested in developing this (on behalf of SAP)! But I am neither a Member nor have a Sponsor at the moment.