[rabbitmq-discuss] RabbitMQ log files rotation daily

Codevally codevally at gmail.com
Thu Feb 2 04:41:20 GMT 2012

Thanks for the comments. I achieved this task using linux logrotate.

On Feb 2, 1:23 am, Ask Solem <a... at rabbitmq.com> wrote:
> On 1 Feb 2012, at 03:44, Roshan Pradeep wrote:
> > Hi All
> > I want to rotate the RabbitMQ log files in daily basis like support in log4j. The only log rotate support I found is rabbitmqctl rotate_logs <suffix>.
> Fromhttp://manpages.ubuntu.com/manpages/jaunty/man1/rabbitmqctl.1.html:
>   rotate_logs [suffix]
>       instruct the RabbitMQ node to rotate the log files. The RabbitMQ
>       broker will attempt to append the current contents of the log file
>       to the file with the name composed of the original name and the
>       suffix. It will create a new file if such a file does not already
>       exist. When no  suffix is specified, the empty log file is
>       simply created at the original location; no rotation takes place.
>       When an error occurs while appending the contents of the old log
>       file, the operation behaves in the same way as if no suffix was
>       specified. This command might be helpful when you are e.g. writing
>       your own logrotate script and you do not want to restart the
>       RabbitMQ node.
> > Could some one please explain how to achieve the daily log file rotation. Also I am not sure what kind of suffix expect from rabbitmqctl rotate_logs.
> Have you tried adding rotate_logs to the daily cron script?
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-disc... at lists.rabbitmq.comhttps://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

More information about the rabbitmq-discuss mailing list