title: Can MapReduce can be used for filtering log files or something other than counting a single metric?
body: <p>I am trying to understand if MapReduce might be a good tool for a specific problem I have. I need to search through hundreds of log files to find specific hits from a few specific IP addresses and record the time, the ip address, and the url path. </p>
  
  <p>All the examples of MapReduce I've seen related to log analysis seem to be counting a single metric, such as hits per hour. It seems like an overly simplified example that always emits an IntWritable of 1. </p>
  
  <p>In my case, I am not really counting anything - its more of a filter. How would the map reduce steps look to output the timestamp, ip address, and url path of the specific addresses I am searching for?</p>
  
  <p>I also may want to do some analysis to count several different metrics instead of the single "hits per hour". In order to count several different metrics is that generally done with multiple jobs or can a single job count several metrics? </p>
  
  <p>Thanks for the advice!</p>