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
type (string, optional)
Output line formatting: out_file,json,ltsv,csv,msgpack,hash,single_value
Default: json
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
Default: -
Last modified July 24, 2023: Merge pull request #167 from kube-logging/link-fixes-230714 (1dda279)