title: how to split apache log by hour
body: <p>I have an 30Gb's apache log file.Ex:</p>
  
  <pre><code>10.16.131.126 - xxxxx [30/Sep/2014:11:27:20 +0800] "PROPFIND /svn/atlas/!svn/vcc/default HTTP/1.1" 207 404 "-" "SVN/1.6.11 (r934486) neon/0.25.5"
  10.16.131.126 - xxxxxx [30/Sep/2014:11:27:20 +0800] "PROPFIND /svn/atlas/!svn/vcc/default HTTP/1.1" 207 404 "-" "SVN/1.6.11 (r934486) neon/0.25.5"
  10.16.131.126 - xxxxx [30/Sep/2014:11:27:20 +0800] "PROPFIND /svn/atlas/!svn/vcc/default HTTP/1.1" 207 404 "-" "SVN/1.6.11 (r934486) neon/0.25.5" 
  </code></pre>
  
  <p>I want to use awk to split this log file by hours .I have an method,But I think it is stupid. this method is:</p>
  
  <pre><code>awk '$4~/[0-9][0-9][/][A-Z][a-z][a-z][/][0-9]+[:]01/' $1  &gt; /data/log_analysis/log_data/$day_time/01.log)
  awk '$4~/[0-9][0-9][/][A-Z][a-z][a-z][/][0-9]+[:]02/' $1  &gt; /data/log_analysis/log_data/$day_time/02.log)
  awk '$4~/[0-9][0-9][/][A-Z][a-z][a-z][/][0-9]+[:]03/' $1  &gt; /data/log_analysis/log_data/$day_time/03.log)
  .....
  </code></pre>
  
  <p>Do you have better method to resolve this problem?thank you!</p>