File
Description
Output plugin for writing events to a file.
Parameters
Usage name: file
Parameter | Expected value | Required | Description |
---|---|---|---|
path | <str> | Yes | Absolute file path |
format | original | json-lines | No, default is original | Format for output events |
flush | <bool> | No, default is False | Whether to flush buffer after each write operation |
Example
file:
path: "/app/log/out.log"
format: "json-lines"
flush: true