Forward header logs not visible


#1

I’m trying to enable forward header logging.

Added this to my http router:

  • protocol: http
    label: outgoing
    interpreter:
    kind: io.l5d.namerd
    dst: /$/inet/namerd.service.consul/4100
    namespace: default
    httpAccessLog: /alloc/logs/access_outgoing.log
    servers:
    • port: 8081
      ip: 0.0.0.0
      addForwardedHeader:
      by: {kind: “ip:port”}
      for: {kind: ip}

I have a servicemesh service running, so I did curl -s -H “Host: servicemesh.svc.consul” 10.224.240.69:8081
from one of the nodes in my cluster.

The access log looks like:

[root@msp-am-wkr001 alloc]# cat 88bb5553-2234-5ff6-613d-18fca1b1089d/alloc/logs/access_outgoing.log
servicemesh.svc.consul 10.224.240.72 - - [10/01/2018:00:03:33 +0000] “GET / HTTP/1.1” 200 64 “-” “curl/7.29.0”

How do I get the forward header entry? Is my configuration wrong?


#2

Is the Forwarded header actually included on requests sent by Linkerd to the target service?


#3

Forgot about that. Thanks!