{"action":"created","issue":{"url":"https://api.github.com/repos/Comcast/traffic_control/issues/882","labels_url":"https://api.github.com/repos/Comcast/traffic_control/issues/882/labels{/name}","comments_url":"https://api.github.com/repos/Comcast/traffic_control/issues/882/comments","events_url":"https://api.github.com/repos/Comcast/traffic_control/issues/882/events","html_url":"https://github.com/Comcast/traffic_control/issues/882","id":123004606,"number":882,"title":"Traffic Router not logging request IP correctly when overridden using a header","user":{"login":"elsloo","id":4641376,"avatar_url":"https://avatars.githubusercontent.com/u/4641376?v=3","gravatar_id":"","url":"https://api.github.com/users/elsloo","html_url":"https://github.com/elsloo","followers_url":"https://api.github.com/users/elsloo/followers","following_url":"https://api.github.com/users/elsloo/following{/other_user}","gists_url":"https://api.github.com/users/elsloo/gists{/gist_id}","starred_url":"https://api.github.com/users/elsloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elsloo/subscriptions","organizations_url":"https://api.github.com/users/elsloo/orgs","repos_url":"https://api.github.com/users/elsloo/repos","events_url":"https://api.github.com/users/elsloo/events{/privacy}","received_events_url":"https://api.github.com/users/elsloo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Comcast/traffic_control/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Comcast/traffic_control/labels/Traffic%20Router","name":"Traffic Router","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"trevorackerman","id":6789769,"avatar_url":"https://avatars.githubusercontent.com/u/6789769?v=3","gravatar_id":"","url":"https://api.github.com/users/trevorackerman","html_url":"https://github.com/trevorackerman","followers_url":"https://api.github.com/users/trevorackerman/followers","following_url":"https://api.github.com/users/trevorackerman/following{/other_user}","gists_url":"https://api.github.com/users/trevorackerman/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorackerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorackerman/subscriptions","organizations_url":"https://api.github.com/users/trevorackerman/orgs","repos_url":"https://api.github.com/users/trevorackerman/repos","events_url":"https://api.github.com/users/trevorackerman/events{/privacy}","received_events_url":"https://api.github.com/users/trevorackerman/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Comcast/traffic_control/milestones/9","html_url":"https://github.com/Comcast/traffic_control/milestones/1.4.0","labels_url":"https://api.github.com/repos/Comcast/traffic_control/milestones/9/labels","id":1341465,"number":9,"title":"1.4.0","description":"","creator":{"login":"mtorluemke","id":3515510,"avatar_url":"https://avatars.githubusercontent.com/u/3515510?v=3","gravatar_id":"","url":"https://api.github.com/users/mtorluemke","html_url":"https://github.com/mtorluemke","followers_url":"https://api.github.com/users/mtorluemke/followers","following_url":"https://api.github.com/users/mtorluemke/following{/other_user}","gists_url":"https://api.github.com/users/mtorluemke/gists{/gist_id}","starred_url":"https://api.github.com/users/mtorluemke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtorluemke/subscriptions","organizations_url":"https://api.github.com/users/mtorluemke/orgs","repos_url":"https://api.github.com/users/mtorluemke/repos","events_url":"https://api.github.com/users/mtorluemke/events{/privacy}","received_events_url":"https://api.github.com/users/mtorluemke/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":12,"state":"open","created_at":"2015-10-06T22:05:43Z","updated_at":"2015-12-18T18:42:12Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-12-18T18:42:12Z","updated_at":"2015-12-21T17:29:28Z","closed_at":null,"body":"It appears that the IP address in the \"chi\" field of the access log is always the IP of the machine communicating with Traffic Router. There are special use cases for HTTP delivery services where the client IP is overridden by a request header, and routing decisions are done based on this new IP, not the one connected to Traffic Router. Update logging to reflect this use case."},"comment":{"url":"https://api.github.com/repos/Comcast/traffic_control/issues/comments/166366025","html_url":"https://github.com/Comcast/traffic_control/issues/882#issuecomment-166366025","issue_url":"https://api.github.com/repos/Comcast/traffic_control/issues/882","id":166366025,"user":{"login":"dneuman64","id":5092346,"avatar_url":"https://avatars.githubusercontent.com/u/5092346?v=3","gravatar_id":"","url":"https://api.github.com/users/dneuman64","html_url":"https://github.com/dneuman64","followers_url":"https://api.github.com/users/dneuman64/followers","following_url":"https://api.github.com/users/dneuman64/following{/other_user}","gists_url":"https://api.github.com/users/dneuman64/gists{/gist_id}","starred_url":"https://api.github.com/users/dneuman64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dneuman64/subscriptions","organizations_url":"https://api.github.com/users/dneuman64/orgs","repos_url":"https://api.github.com/users/dneuman64/repos","events_url":"https://api.github.com/users/dneuman64/events{/privacy}","received_events_url":"https://api.github.com/users/dneuman64/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T17:29:27Z","updated_at":"2015-12-21T17:29:27Z","body":"1) Yes, you can set a \"x-mm-client-ip\" header.  You could also use a fakeClientIpAddress parameter.  See [here](http://bit.ly/1J235sY )  \r\n2) Yes, currently the chi field in the log contains the actual source IP and not the overriding IP."}}