elasticsearch/logstash-forwarder — pull request #260 by AntonioMeireles (2014-09-01 10:46:53+00:00)
Title: trying a bit harder to get golang's os.Hostname() to behave like 'hostname -f' all the time.

Hi, attached patch attempts to fix an issue (specially inside docker containers) where too often logstash-forwarder relays data with the short hostname as source (an alternative approach would be to just actually call hostname -f but here i kept using exclusively golang machinery in order to keep platform portability).