files

Read from multiple files, in order of creation

Example

action:

files:
  data-dir: /var
  path: /var/log/dpkg.*

Field NameDescriptionTypeDefault
patha path with wildcards identifying files to be readpath-
data_dirthe directory where checkpoints are writtenpath-
includeany other paths to be includedarray of path-
excludepaths to be excludedarray of path-
ignore-older-thanignore files older than this (epoch time in seconds)int-
glob-minimum-cooldownpause after scanning for new filesint300ms
remove-afterremove file after readingboolfalse
file-path-fieldfill this field with the field we are currently reading fromfield-
start-at-beginningignore stored checkpoints and re-read all specified filesboolfalse
rawboolfalse
max-line-sizewill not attempt to read lines longer than thisint1024b
max-read-sizewill not attempt to read files larger than thisint100Mb

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