Log Rotation using advanced.config

73 views
Skip to first unread message

Naseer Pasha R

unread,
Nov 11, 2022, 7:04:29 AM11/11/22
to rabbitmq-users
Dear Team,

RabbitMQ version : 3.9.13
Erlang version : 24.2.1

We are using the command rabbitmqctl.bat rotate_logs to rotate the large data log files from the past two years.
However rabbitmqctl.bat rotate_logs command has been deprecated and does nothing.

I have referred https://www.rabbitmq.com/logging.html#log-rotation online But this helps to configure in rabbitmq.conf.
However I need to configure the advanced.config for automatic log rotation and log archiving based on the log size. i.e. Rotate the RabbitMQ log if the log reaches specific size and archive the old log files.

Request you to provide the configuration changes for advanced.config.
Please do the needful and let me know if there are any queries.

Luke Bakken

unread,
Nov 11, 2022, 10:32:43 AM11/11/22
to rabbitmq-users
Hello,

You can use BOTH rabbitmq.conf and advanced.config at the same time.

You can refer to this recent discussion concerning log rotation on Windows - https://groups.google.com/g/rabbitmq-users/c/dbvLMFnGAvE

Please note that you are using an old version of RabbitMQ that will be unsupported soon.

Thanks,
Luke

Naseer Pasha R

unread,
Nov 12, 2022, 12:58:19 AM11/12/22
to rabbitm...@googlegroups.com, luker...@gmail.com
Hi Luke and Team,

Thanks for the response and this is helpful.
I have two queries to clarify and please let me know on this.
1. Is there any command alternative/substitute to rabbitmqctl.bat rotate_logs(deprecated) to rotate logs.
2. I have installed the latest RabbitMQ version 3.11.0 and I see advanced.config in the data directory but not rabbitmq.conf. Please let me know any reason for this and clarify.

--
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 view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/88364434-6c9e-47eb-b681-55956fdd55d0n%40googlegroups.com.


--
Thanking You,
Naseer Pasha R
Reply all
Reply to author
Forward
0 new messages