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 December 3, 2025: Merge 93ef79b90193df9d95bda2068bba61200e21e86b into 2eea06951e5cb8d307b35fee26ea2a83a8ed6bdb (e71de0b)