From 06d316aad0811ad3b0451b5ce2d2ba9203e278f8 Mon Sep 17 00:00:00 2001 From: Michael Pleshakov Date: Wed, 25 Mar 2020 15:51:09 -0700 Subject: [PATCH] Add doc for json escaping in logs Add the doc for https://github.com/nginxinc/kubernetes-ingress/pull/845 --- .../global-configuration/configmap-resource.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs-web/configuration/global-configuration/configmap-resource.md b/docs-web/configuration/global-configuration/configmap-resource.md index c2120b99dd..5f6a6f3763 100644 --- a/docs-web/configuration/global-configuration/configmap-resource.md +++ b/docs-web/configuration/global-configuration/configmap-resource.md @@ -203,13 +203,21 @@ See the doc about [VirtualServer and VirtualServerRoute resources](/nginx-ingres - ``False`` - * - ``log-format`` - - Sets the custom `log format `_ for HTTP and HTTPS traffic. + - Sets the custom `log format `_ for HTTP and HTTPS traffic. For convenience, it is possible to define the log format across multiple lines (each line separated by ``\n``). In that case, the Ingress Controller will replace every ``\n`` character with a space character. All ``'`` characters must be escaped. - See the `template file `_ for the access log. - + * - ``log-format-escaping`` + - Sets the characters escaping for the variables of the log format. Supported values: ``json`` (JSON escaping), ``default`` (the default escaping) ``none`` (disables escaping). + - ``default`` + - * - ``stream-log-format`` - - Sets the custom `log format `_ for TCP, UDP, and TLS Passthrough traffic. + - Sets the custom `log format `_ for TCP, UDP, and TLS Passthrough traffic. For convenience, it is possible to define the log format across multiple lines (each line separated by ``\n``). In that case, the Ingress Controller will replace every ``\n`` character with a space character. All ``'`` characters must be escaped. - See the `template file `_. - + * - ``stream-log-format-escaping`` + - Sets the characters escaping for the variables of the stream log format. Supported values: ``json`` (JSON escaping), ``default`` (the default escaping) ``none`` (disables escaping). + - ``default`` + - ``` ### Request URI/Header Manipulation