How to handle RabbitMQ Logs?

Razze picture Razze · Jan 17, 2017 · Viewed 16.2k times · Source

We're running RabbitMQ and the .log it's writing to the log folder get quiet large.

What's the right thing to do there, can we just delete it from time to time, should we rotate them away and then delete them? I fail to find any documentation on this.

Answer

Gabriele Santomaggio picture Gabriele Santomaggio · Jan 17, 2017

You can use rabbitmqctl rotate_logs

Instruct the RabbitMQ node to rotate the log files.

then delete the OLD files