{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/beats/issues/1070","repository_url":"https://api.github.com/repos/elastic/beats","labels_url":"https://api.github.com/repos/elastic/beats/issues/1070/labels{/name}","comments_url":"https://api.github.com/repos/elastic/beats/issues/1070/comments","events_url":"https://api.github.com/repos/elastic/beats/issues/1070/events","html_url":"https://github.com/elastic/beats/issues/1070","id":137406202,"number":1070,"title":"Allow finding host FQDN","user":{"login":"pickypg","id":1501235,"avatar_url":"https://avatars.githubusercontent.com/u/1501235?v=3","gravatar_id":"","url":"https://api.github.com/users/pickypg","html_url":"https://github.com/pickypg","followers_url":"https://api.github.com/users/pickypg/followers","following_url":"https://api.github.com/users/pickypg/following{/other_user}","gists_url":"https://api.github.com/users/pickypg/gists{/gist_id}","starred_url":"https://api.github.com/users/pickypg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pickypg/subscriptions","organizations_url":"https://api.github.com/users/pickypg/orgs","repos_url":"https://api.github.com/users/pickypg/repos","events_url":"https://api.github.com/users/pickypg/events{/privacy}","received_events_url":"https://api.github.com/users/pickypg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/beats/labels/enhancement","name":"enhancement","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-29T22:59:58Z","updated_at":"2016-02-29T22:59:58Z","closed_at":null,"body":"Apparently Go does not provide the FQDN on all systems (particularly Linux, it seems) because it checks `/bin/hostname` rather than `/bin/hostname -f`.\r\n\r\nHere's the Go test showing that they accept the shortname: https://golang.org/src/os/os_test.go#L1341\r\n\r\nIt would be great if we could fill in the actual FQDN rather than an unexpected subset, but it does mean providing an appropriate mechanism for _every_ supported system (or falling back to the subpar behavior that comes out of the box).\r\n\r\nAs a workaround, #715 will allow environment variables to fill this in, but it still requires something else in the environment to be used.\r\n\r\n/cc @andrewkroh"}}