How to capture headers and cookies in router access logs in OpenShift 4

Solution Verified - Updated -

Issue

  • How to capture HTTP headers in the Ingress access logs in OpenShift Container Platform?
  • How to specify the capture cookie or capture request header and capture response header HAProxy 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content