Restarting RabbitMQ

XRAY: Configuring RabbitMQ Log Rotation For JFrog Xray

AuthorFullName__c
Jonathan Wehner
articleNumber
000006145
ft:sourceType
Salesforce
FirstPublishedDate
2024-07-11T09:32:39Z
lastModifiedDate
2024-07-11T09:32:39Z
VersionNumber
1
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:
./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