files
Read from multiple files, in order of creation
Example
action:
files:
data-dir: /var
path: /var/log/dpkg.*
Field Name | Description | Type | Default |
---|---|---|---|
path | a path with wildcards identifying files to be read | path | - |
data_dir | the directory where checkpoints are written | path | - |
include | any other paths to be included | array of path | - |
exclude | paths to be excluded | array of path | - |
ignore-older-than | ignore files older than this (epoch time in seconds) | int | - |
glob-minimum-cooldown | pause after scanning for new files | int | 300ms |
remove-after | remove file after reading | bool | false |
file-path-field | fill this field with the field we are currently reading from | field | - |
start-at-beginning | ignore stored checkpoints and re-read all specified files | bool | false |
raw | bool | false | |
max-line-size | will not attempt to read lines longer than this | int | 1024b |
max-read-size | will not attempt to read files larger than this | int | 100Mb |
path
a path with wildcards identifying files to be read
Type: path
data_dir
the directory where checkpoints are written
Type: path
include
any other paths to be included
Type: array of path
exclude
paths to be excluded
Type: array of path
ignore-older-than
ignore files older than this (epoch time in seconds)
Type: int
glob-minimum-cooldown
pause after scanning for new files
Type: int
remove-after
remove file after reading
Type: bool
file-path-field
fill this field with the field we are currently reading from
Type: field
start-at-beginning
ignore stored checkpoints and re-read all specified files
Type: bool
raw
???
Type: bool
max-line-size
will not attempt to read lines longer than this
Type: int
max-read-size
will not attempt to read files larger than this
Type: int