Is it Safe delete old Logs

1,542 views
Skip to first unread message

Michael.B

unread,
Aug 12, 2016, 8:03:02 AM8/12/16
to rabbitmq-users
I need to clear up space on my RMQ server,

there are a number of logs in the location /var/log/rabbitmq/

the Logs that i would like to remove are '.sasl.log."date".gz' , 'servername.log-"date"' as one of these files is over 4gb

Using the cmd #rabbitmqctl rotate_logs .1 allows you to remove the currently used log file, however i need to remove all older logs in  the same directoy.

I have previously removed logs from /var/log/rabbitmq/management-access.log/ for logs over a year old and that caused RMQ not to be able to login, until it was restarted. I need to try avoid this happening again.

Any information will be depreciated

Michael.B

unread,
Aug 12, 2016, 8:14:15 AM8/12/16
to rabbitmq-users
Any information will be **Appreciated

Michael Klishin

unread,
Aug 12, 2016, 8:49:00 AM8/12/16
to rabbitm...@googlegroups.com
RabbitMQ nodes do not use old log files so if you are sure you don't need them,
feel free to delete or archive them.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Michael.B

unread,
Aug 12, 2016, 9:54:11 AM8/12/16
to rabbitmq-users
Thanks, it was more of a concern as the old logs located in /var/log/rabbitmq/management-access.log/  from last year when deleted caused RMQ to throw some issues and cause login to fail and connections to fail until a restart was done.

Regards
MB



On Friday, 12 August 2016 13:49:00 UTC+1, Michael Klishin wrote:
RabbitMQ nodes do not use old log files so if you are sure you don't need them,
feel free to delete or archive them.
On Fri, Aug 12, 2016 at 3:03 PM, Michael.B <mich...@iris.net> wrote:
I need to clear up space on my RMQ server,

there are a number of logs in the location /var/log/rabbitmq/

the Logs that i would like to remove are '.sasl.log."date".gz' , 'servername.log-"date"' as one of these files is over 4gb

Using the cmd #rabbitmqctl rotate_logs .1 allows you to remove the currently used log file, however i need to remove all older logs in  the same directoy.

I have previously removed logs from /var/log/rabbitmq/management-access.log/ for logs over a year old and that caused RMQ not to be able to login, until it was restarted. I need to try avoid this happening again.

Any information will be depreciated

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
Aug 12, 2016, 10:16:02 AM8/12/16
to rabbitm...@googlegroups.com
I find it hard to believe that rotated log files are used by RabbitMQ in any way, leave alone
can result in login failures. Most likely you also removed currently opened logs, in particular
the SASL one.

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages