How to Rotate RabbitMQ Logs Using the Command Line in Retail Pro Prism

RabbitMQ is a messaging system necessary for replication in Retail Pro Prism. RabbitMQ logs can be rotated and deleted without having to stop the RabbitMQ Service or any other RP Prism-related services. It is important to continually rotate and delete logs, because logs can get very large and prevent proper functioning of RabbitMQ.

Managing the RabbitMQ logs

1. Run the following command (manually or via scheduled task) to append ".#" to the end of all RabbitMQ logs and create a new set of logs for use.

C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-x.x.x\sbin rabbitmqctl.bat rotate_logs

Rotate logs

This appends a ".1" as an extension to the file the first time this command is used, ".2" the second time, and so forth. Be sure to replace rabbitmq_server-x.x.x with the actual version found in the path "C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-x.x.x\sbin\rabbitmqctl" rotate_logs.

Please note that the x.x.x in the above command represents the RabbitMQ version. Your deployed version of RabbitMQ version can be verified from the path below or by checking the installed program list from Windows.

Verify in Program Files:

Verify RabbitMQ version

 

Verify in Programs and Features:

Check the installed program list from Windows.

 

2. All RabbitMQ logs with the ".#" extension can now be deleted.

3. Use the command to append a ".0" to the end of all RabbitMQ logs and create a new set of logs for use. 

 

You can find additional commands for RabbitMQ log management in the article, RabbitMQ Log Management Best Practice for Retail Pro Prism.

 

Published on Feb 23, 2021 in RP Prism Services, RabbitMQ

 

Find Another Article