Skip to main content

File

Reads messages from files on disk. Paths support glob patterns, including super globs (**), so a single input can consume an entire directory tree. Each file is read sequentially and broken into messages by the chosen scanner.

FieldTypeDefaultDescription
Pathslist of strings[]Files to consume. Glob patterns (*, **) are expanded at startup
ScannerscannerLinesHow each file's bytes are split into messages
Delete On FinishbooleanfalseDelete each file from disk once fully consumed
Auto Replay NacksbooleantrueAutomatically replay rejected messages

Metadata

Each emitted message carries these metadata fields, available to downstream processors:

FieldDescription
pathAbsolute path of the source file
mod_time_unixFile modification time as a Unix timestamp
mod_timeFile modification time in RFC 3339 format