Format
Format output records
Overview
Specify how to format output records. For details, see https://docs.fluentd.org/configuration/format-section.
Example
spec:
format:
path: /tmp/logs/${tag}/%Y/%m/%d.%H.%M
format:
type: single_value
add_newline: true
message_key: msg
Configuration
Format
add_newline (*bool, optional)
When type is single_value add ‘\n’ to the end of the message
Default: true
message_key (string, optional)
When type is single_value specify the key holding information
type (string, optional)
Output line formatting: out_file,json,ltsv,csv,msgpack,hash,single_value
Default: json
Last modified January 15, 2026: Merge 5577547291e90495a90e1d6d0b91fa3572705954 into e6b6700e180c0d84b1f706e59d19f16be470081a (6c4670a)