Technology Insights

Setup Log Rotation for Multiple Ruby on Rails Projects Using Linux logrotate

Setting up log rotation for multiple Ruby on Rails projects on the same Linux server is easy using logrotate. If all of your projects are in the same directory structure it is even easier by using variables to work for each different project as explained below in detail.

First you will need to install logrotate which can be installed on CentOS Linux via yum as shown in the below command.


  1. yum install logrotate