Skip to main content

File

Description

Output plugin for writing events to a file.

Parameters

Usage name: file

ParameterExpected valueRequiredDescription
path<str>YesAbsolute file path
formatoriginal | json-linesNo, default is originalFormat for output events
flush<bool>No, default is FalseWhether to flush buffer after each write operation

Example

file:
path: "/app/log/out.log"
format: "json-lines"
flush: true