title: how to run a logrotate hourly
body: <p>I created a program.conf that logrotate my logs hourly in an EC2 instance. the logrotate works well when i force it command (by <i>sudo logrotate program.conf --verbose --force</i>) but it doesn't run each hour. </p>
  
  <p>I tried several solutions by googling this problem like puting my program.conf in /etc/logrotate.d and moving logrotate from cron.dail into cron.hourly.
  but it doesn't work.</p>
  
  <p>Here is my program.conf :</p>
  
  <pre><code>/home/user_i/*.log{
  hourly
  missingok
  dateext 
  rotate 1
  compress
  size 100M
  sharedscripts
  postrotate
      /usr/bin/bash file.sh
  endscript
  }
  </code></pre>
  
  <p>Have you any idea please ?</p>
  
  <p>Thanks</p>