You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to enable headers and request body in linkerd-proxy HTTP log.
By default, LINKERD2_PROXY_LOG environmental variable in workload application linkerd-proxy container set as following, disabling headers and request body.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to enable headers and request body in linkerd-proxy HTTP log.
By default, LINKERD2_PROXY_LOG environmental variable in workload application linkerd-proxy container set as following, disabling headers and request body.
LINKERD2_PROXY_LOG: warn,linkerd=info,hickory=error,[{headers}]=off,[{request}]=off
I have tried to enable that by changing linkerd-config configmap.
Default parametes of linkerd-config configmap:
logHTTPHeaders: "off"
logLevel: warn,linkerd=info,hickory=error
Applied configmap parameters
logHTTPHeaders: "on"
logLevel: warn,linkerd=info,hickory=error
However, I have failed to loh headers and request body.
Is it possible to capture the requestbody and headers? What is the correct way to do that?
Beta Was this translation helpful? Give feedback.
All reactions