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 August 16, 2024: Merge pull request #252 from george-kuanli-peng/fix-component-overview (0f2e267)