simple map reduce code to parse a log file and retrieve necessary information