Skip to content

Log Files

Monitor one or more log files for new lines.

FieldTypeRequiredDescription
pathpath (string)a path with wildcards identifying files to be read.
encodingencoding (string)the text encoding for the monitored files.
includepath (string)any other paths to be included.
excludepath (string)paths to be excluded.
ignore-older-thannumber (integer)ignore files older than this (epoch time in seconds).
glob-minimum-cooldownnumber (integer)pause after scanning for new files (in milliseconds).
stop-reading-afterboolean (bool)do not wait for new files.
ignore-line-breaksboolean (bool)consume each file as one event.
remove-afternumber (integer)remove files that are done reading after this period (seconds).
fingerprintingfiles_input:fingerprintingFile fingerprinting strategy.
oldest-firstboolean (bool)default is youngest first.
file-path-fieldevent-field (string)fill this field with the file we are currently reading from.
file-basenameboolean (bool)the file-path-field path will be the basename (e.g. ‘/path/frodo.txt’ becomes just ‘frodo’).
start-at-beginningboolean (bool)ignore stored checkpoints and re-read all specified files.
jsonboolean (bool)assume lines are already JSON.
max-read-sizenumber (integer)will not attempt to read files larger than this.
max-line-sizenumber (integer)will not attempt to read lines longer than this.