title: Grepping through logs to get user, path
body: <p>I have set up some logging to track user behavior. Here is what a sample line in my log file looks like:</p>
  
  <pre><code>[INFO] User david@gmail.net DELETE /api/upitem/126926
  </code></pre>
  
  <p>How would I get all lines where the username <code>david@gmail.com</code> is in the line AND the url <code>/api/upitem/</code> is in the url?</p>
  
  <p>Something along the lines of </p>
  
  <pre><code>`grep 'david@gmail.com' ./file.log | grep '\/api\/upitem\/ ./file.log1`
  </code></pre>
  
  <p>Would would be the best way to do this log search/analysis?</p>