Configuring RabbitMQ Log Rotation

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
Locate the rabbitmq.conf file which defaults to /opt/jfrog/xray/app/bin/rabbitmq/rabbitmq.conf. For file size based rotation, add the following lines to the configuration file

# rotate when the file reaches 50 MiB (file size in bytes)
log.file.rotation.size =52428800
# keep up to 5 archived log files
log.file.rotation.count = 5

This configuration will rotate the log file upon reaching 50MiB, and keep 5 log files in the archive, which will be sufficient for debugging problematic RabbitMQ behavior.