{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/apm-server/issues/920","repository_url":"https://api.github.com/repos/elastic/apm-server","labels_url":"https://api.github.com/repos/elastic/apm-server/issues/920/labels{/name}","comments_url":"https://api.github.com/repos/elastic/apm-server/issues/920/comments","events_url":"https://api.github.com/repos/elastic/apm-server/issues/920/events","html_url":"https://github.com/elastic/apm-server/issues/920","id":321866384,"number":920,"title":"Events are invalid if remote address is not an IP","user":{"login":"axw","id":843579,"avatar_url":"https://avatars2.githubusercontent.com/u/843579?v=4","gravatar_id":"","url":"https://api.github.com/users/axw","html_url":"https://github.com/axw","followers_url":"https://api.github.com/users/axw/followers","following_url":"https://api.github.com/users/axw/following{/other_user}","gists_url":"https://api.github.com/users/axw/gists{/gist_id}","starred_url":"https://api.github.com/users/axw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axw/subscriptions","organizations_url":"https://api.github.com/users/axw/orgs","repos_url":"https://api.github.com/users/axw/repos","events_url":"https://api.github.com/users/axw/events{/privacy}","received_events_url":"https://api.github.com/users/axw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-10T09:24:44Z","updated_at":"2018-05-11T07:16:31Z","closed_at":"2018-05-11T07:16:31Z","author_association":"MEMBER","body":"The server optionally augments incoming data by adding the \"system.ip\" field to the client address: https://github.com/elastic/apm-server/blob/a37185ab9917e24822d693d0a01d5888fed046d8/decoder/decoder.go#L169\r\n\r\nThis fails if the remote address it not an IP. In that case, we'll get errors like:\r\n\r\n> Cannot index event publisher.Event ... {\"type\":\"mapper_parsing_exception\",\"reason\":\"failed to parse [context.system.ip]\",\"caused_by\":{\"type\":\"illegal_argument_exception\",\"reason\":\"'pipe' is not an IP string literal.\"}}\r\n\r\nThis particular error was caused by the (WIP) introduction of an in-memory transport that I'm intending to use for the server to trace itself. The remote address is always \"pipe\".\r\n\r\nI haven't tested it, but I expect this would also manifest when using the Unix socket listener support."}}
{"actor":{"display_login":"jalvz"}}