logstash/logstash — pull request #949 by piotr1212 (2014-01-17 10:29:53+00:00)
Title: input file: don't overwrite host field

When reading file input in json (logstash-event1) format the host field is overwritten with the current hostname. If the file is generated on a different system and transported to the LS server and then imported the host field contains the wrong value.

This patch checks if the host field is already present, if so it doesn't overwrite the value.

I've run the test and signed the CLA.