This configuration will not be applied automatically, and RabbitMQ will need to restart to apply the change.
As the Xray linux user, navigate to /opt/jfrog/xray/app/third-part/rabbitmq/sbin and execute the following commands:
We can confirm that the rotation took effect by listing the log directory:
The existence of a log.0 file will confirm the log was rotated:
As the Xray linux user, navigate to /opt/jfrog/xray/app/third-part/rabbitmq/sbin and execute the following commands:
./rabbitmqctl stop_app ./rabbitmqctl start_app
We can confirm that the rotation took effect by listing the log directory:
ls -lh /opt/jfrog/xray/var/log/rabbitmq/
The existence of a log.0 file will confirm the log was rotated:
total 1.8G -rw-rw-r-- 1 xray xray 115K Jul 10 16:27 rabbit@node.log -rw-r--r-- 1 xray xray 1.8G Jul 10 16:14 rabbit@node.log.0