Fixed log file.
Started function to parse hostname from new format of the input