title: Parsing nginx log data with whitespace as delimiter
body: <p>I am trying to parse the following format from a nginx log file:</p>
  
  <pre><code>10.0.0.1    [02/Oct/2012:10:21:46 +0000]    GET /api/123/test.json?stop=2012-09-29  502 0
  </code></pre>
  
  <p>My python script:</p>
  
  <pre><code>#!/usr/bin/env python
  
  f = file('slow-queries.txt', 'r')
  
  # iterate over the lines in the file
  for line in f:
      # split the line into a list of column values
      columns = line.split(' ')
      # clean any whitespace off the items
      # columns = [col.strip() for col in columns]
  
      # ensure the column has at least one value before printing
      if columns:
          print "first  =&gt;", columns[0]  # print the first column
          print "second =&gt;", columns[1]
  </code></pre>
  
  <p>Basically all I want from the log file is the query that was sent, so in the above example, i'm looking to extract <code>/api/123/test.json?stop=2012-09-29</code></p>
  
  <p>My script doesn't seem to do this, what am I doing wrong?</p>