Substitution format string
Configuration to use multiple command operators to generate a new string in either plain text or JSON format.
text_format
() Specify a format with command operators to form a text string. Its details is described in format string.
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 . To migrate text format strings, use the inline_string field.
Precisely one of , json_format, must be set.
json_format
json_format:
The following JSON object would be created:
Precisely one of text_format, , text_format_source must be set.
text_format_source
() Specify a format with command operators to form a text string. Its details is described in format string.
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 , json_format, must be set.
omit_empty_values
for
json_format
the keys with null values are omitted in the output structure.
content_type
(string) 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 ) 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: