@ -23,15 +23,18 @@ message SubstitutionFormatString {
/ / Specify a format with command operators to form a text string .
/ / Its details is described in : ref : ` format string < config_access_log_format_strings > ` .
/ /
/ / . . code - block : :
/ / For example , setting ` ` text_format ` ` like below ,
/ /
/ / text_format : % LOCAL_REPLY_BODY % : % RESPONSE_CODE % : path = $ REQ ( : path ) %
/ / . . validated - code - block : : yaml
/ / : type - name : envoy.config.core.v3.SubstitutionFormatString
/ /
/ / The following plain text will be created :
/ / text_format : "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n"
/ /
/ / . . code - block : :
/ / generates plain text similar to :
/ /
/ / upstream connect error : 204 : path = / foo
/ / . . code - block : : text
/ /
/ / upstream connect error : 503 : path = / foo
/ /
string text_format = 1 [ ( validate.rules ) . string = { min_bytes : 1 } ] ;
@ -41,11 +44,12 @@ message SubstitutionFormatString {
/ / Nested JSON objects may be produced by some command operators ( e.g. FILTER_STATE or DYNAMIC_METADATA ) .
/ / See the documentation for a specific command operator for details.
/ /
/ / . . code - block : :
/ / . . validated - code - block : : yaml
/ / : type - name : envoy.config.core.v3.SubstitutionFormatString
/ /
/ / json_format :
/ / status : % RESPONSE_CODE %
/ / message : % LOCAL_REPLY_BODY %
/ / json_format :
/ / status : "%RESPONSE_CODE%"
/ / message : "%LOCAL_REPLY_BODY%"
/ /
/ / The following JSON object would be created :
/ /
@ -70,7 +74,8 @@ message SubstitutionFormatString {
/ / If this field is not set then ` ` text / plain ` ` is used for * text_format * and
/ / ` ` application / json ` ` is used for * json_format * .
/ /
/ / . . code - block : :
/ / . . validated - code - block : : yaml
/ / : type - name : envoy.config.core.v3.SubstitutionFormatString
/ /
/ / content_type : "text/html; charset=UTF-8"
/ /