How to capture headers and cookies in router access logs in OpenShift 4
Issue
- How to capture HTTP headers in the Ingress access logs in OpenShift Container Platform?
- How to specify the
capture cookieorcapture request headerandcapture response headerHAProxy settings on the Openshift Container Platform ingress controller. - How to add some headers or cookies to be displayed in the Ingress controller access logs. However, when the user specifies them in custom log format, they appear blank.
Environment
- Red Hat OpenShift Container Platform
- 4.6 and higher
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.