Folder feeder
This feeder can create the stream of fsnotify events for a given folder or for cloud platform storage like Amazon S3,
Google Drive and Dropbox.
The feeder use cloudwatcher to keep track of changes on the chosen directory.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
name | STRING | empty | the path of the folder that it has to keep track |
type | STRING | “local” | the type of service to use local , dropbox , gdrive , s3 or git |
freq | DURATION | 2s | how often the directory should be checked for updates |
Some services like Gdrive, S3 and Dropbox require additional configurations (you can check them from here).
You can pass them using the config file (more here) OR
define them in the rule itself:
You can pass them using the config file (more here) OR
define them in the rule itself:
<folder: name="/", type="gdrive", client_id="xxx", client_secret="yyy", token="zzz">
<folder: name="/tmp", type="local"> | ...
Output
Text
The main
field of the Message will contain the filename while the op
extra the type of event.
Extra
Name | Description |
---|---|
op | type of event: FileCreated , FileChanged , FileDeleted , TagsChanged |
size | for some events you can find the size of the file that triggered the event |
Examples
Soon…