Thans you very well for your response. In fact, it works with log_format formatjson escape=json '{ '"tomcat_container_id": "$upstream_http_container_id" }'; proxy_hide_header Container-Id; define in my vhost configuration. I have the log AND the header deleted in the browser client.by podzol33 - Nginx Mailing List - English
Hello, We have an responseHeader with technical information sent by the upstream server tomcat. We want to log this information in nginx and delete the header to avoid to be visible in the response Header to the client. log_format formatjson escape=json '{ '"tomcat_container_id": "$TOMCAT_CONTAINER_ID" }'; Nginx.conf in http { map $sent_http_Container_Id $TOMCAby podzol33 - Nginx Mailing List - English