title: Hourly rotation of files using logrotate?
body: <p>I tried to set up a log rotation of logs files located at /tmp/hr_logs/. For setting up, I used logrotate in linux and I'm able to rotate it on daily basis using the following config in my /etc/logrotate.conf</p>
  
  <pre><code>  /tmp/hr_logs {
    daily
    rotate 4
  </code></pre>
  
  <p>With this config, file will rotate on daily basis and system will keep 4 copies of the log file appended with date [format: -YYYYMMDD]</p>
  
  <p>Now, I trying to set up a different set of log files which I need to make rotate on hourly basis and for it, i have done the configuration in logrotate.conf:</p>
  
  <pre><code>  /tmp/last_logs {
    hourly
    rotate 4
  </code></pre>
  
  <p>But this is not at all working? Can anyone please guide me on this please?</p>