title: Apache - Logs from the Last Hour
body: <p>I am using a <strong>cPanel account</strong> and have an <strong>Apache 2.4 access log</strong> that stores its logs like:</p>
  
  <pre><code>66.249.93.30 - - [04/May/2018:21:26:39 +0200] "GET / HTTP/1.1" 302 207 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko; Google Page Speed Insights) Chrome/41.0.2272.118 Safari/537.36"
  66.249.93.30 - - [05/May/2018:10:26:39 +0200] "GET / HTTP/1.1" 302 207 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko; Google Page Speed Insights) Chrome/41.0.2272.118 Safari/537.36"
  </code></pre>
  
  <p>The date is in format date "+%d/%B/%Y:%k:%M:%S"</p>
  
  <p>Using a bash script I would like to extract just the lines that were <strong>logged in the last hour</strong>, for example:</p>
  
  <p><strong>Full Log file:</strong></p>
  
  <pre><code>66.249.93.30 - - [04/May/2018:21:26:39 +0200] First Line
  66.249.93.30 - - [05/May/2018:11:00:21 +0200] Second Line
  66.249.93.30 - - [05/May/2018:11:15:39 +0200] Third Line
  66.249.93.30 - - [05/May/2018:12:00:11 +0200] Fourth Line
  </code></pre>
  
  <p><strong>Current Time:</strong> 05/May/2018:<strong>12:01</strong>:06</p>
  
  <p><strong>Logs from:</strong> 5th of May between the time interval of <strong>11:01 - 12:01</strong></p>
  
  <p><strong>Filtered Output:</strong></p>
  
  <pre><code>66.249.93.30 - - [05/May/2018:11:15:39 +0200] Third Line
  66.249.93.30 - - [05/May/2018:12:00:11 +0200] Fourth Line
  </code></pre>
  
  <p>I have tried using awk and several other suggestions but I can't get it to work, any help will be appreciated! </p>