We are trying to log clientIp by using the X-Forwarded-For header value in our messaging policy. Unfortunately it is always returning a null value. This is what we have in our policy
<Message defaultVariableValue="null">
"{system.time}"::clientIp="{request.header.X-Forwarded-For}"::user-agent=“{request.header.User-Agent}”::companyId="{companyid}"::userName="{username}"::requestType="{request.verb}"::requsetUri="{request.uri}"::JSESSIONID="{JSESSIONID}"::responseCode="{message.status.code}":: Response-RequestTimestamp="{system.timestamp}-{client.received.start.timestamp}"
</Message>
. We know the header value exists because our backend server is logging the value of the remote IP
Could somebody please help me log this?