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.
# 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.