I modified the /etc/logrotate.d/rabbitmq-server by adding the following options:
and subtracting the following options:
- size 100M
I removed the size limit because it was not working as I wanted it to and I removed the 'notifempty' configuration because I want the log file rotated even if it's empty. NOTE: 'ifempty' is the default.
I added the 'copytruncate' configuration in order to copy the active log file to a backup and truncate the active log file.
Lastly, I removed the 'force' configuration from my previous post. From what I gather the 'force' option or '-f' is only used when you execute logrotate via the command line and is not used when placed in the actual config file.
Below is the solution to my log rotation needs:
/sbin/service rabbitmq-server rotate-logs > /dev/null
Thanks all for your help!