Substitution format string
Configuration to use multiple to generate a new string in either plain text or JSON format.
text_format
(string) Specify a format with command operators to form a text string. Its details is described in .
For example, setting like below,
text_format: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n"
generates plain text similar to:
Deprecated in favor of text_format_source. To migrate text format strings, use the field.
Precisely one of text_format, , text_format_source must be set.
json_format
json_format:
The following JSON object would be created:
Precisely one of , json_format, must be set.
text_format_source
(config.core.v3.DataSource) Specify a format with command operators to form a text string. Its details is described in .
For example, setting text_format
like below,
text_format_source:
inline_string: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n"
generates plain text similar to:
Precisely one of text_format, , text_format_source must be set.
omit_empty_values
for
json_format
the keys with null values are omitted in the output structure.
content_type
() Specify a content_type field. If this field is not set then text/plain
is used for text_format and is used for json_format.
content_type: "text/html; charset=UTF-8"
formatters
(repeated config.core.v3.TypedExtensionConfig) Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details.
Tip
This extension category has the following known extensions: