title: How to parse MySQL slow query log for last 24 hours of entries
body: <p>I'd like to process my MySQL Slow Query log and retrieve the last 24 hours of entries, Log rotation isn't an option at present.</p>
  
  <p>Below is an example log entry</p>
  
  <pre><code># Query_time: 0.000431  Lock_time: 0.000124 Rows_sent: 8  Rows_examined: 25
  SET timestamp=1415792064;
  SELECT `username`, `password`, `date_created` From joomla_users
  ORDER BY `kid` DESC;
  # User@Host: joomla[joomla] @  [192.168.168.100]
  </code></pre>
  
  <p>I would like to use awk or grep or a similar solution that could be executed via command line or as part of a script to identify the entries placed in the mysql slow query log file within the last 24 hours by comparing the "SET TIMESTAMP" line for each entry and place said entries into a separate log file.</p>