file

Reads a file, where each line is processed as an individual message.

# Config fields, showing default values
input:
file:
path: ""
multipart: false
max_buffer: 1e+06
delimiter: ""

Fields

path

A path pointing to a file on disk.

Type: string
Default: ""

multipart

If set true each line is read as a message part, and an empty line indicates the end of a message batch, and only then is the batch flushed downstream.

Type: bool
Default: false

max_buffer

Must be larger than the largest line of the target file.

Type: number
Default: 1000000

delimiter

A string that indicates the end of a message within the target file. If left empty then line feed (\n) is used.

Type: string
Default: ""