Rabbitmq file is NOT rolling over. It fills up the /var file system.
search cancel

Rabbitmq file is NOT rolling over. It fills up the /var file system.

book

Article ID: 386208

calendar_today

Updated On:

Products

VMware Telco Cloud Service Assurance VMware Smart Assurance

Issue/Introduction

RabbitMQ logs are not getting written to Installer path i.e default logs directory "<SAM_BASE>/smarts/local/logs"  instead it is getting saved under /var/log/rabbitmq/

Environment

TCSA DM - 2.4

Cause

It is a bug as RABBITMQ_LOGS variable is missing in config file. 

Resolution

To resolve this issue, perform the below steps;

  1. Stop the rabbitmq service 
    ./sm_service stop <rabbitmq service>
  2. Take backup of sm_rabbitmq file located at <SAM_BASE>/smarts/bin/system to non-Smarts path like /tmp.
  3. Navigate to <SAM_BASE>/smarts/bin/system/directory, open sm_rabbitmq file.
  4. Locate line 
    export RABBITMQ_MNESIA_DIR
  5. Add
    export RABBITMQ_LOGS
    right below to line number 4, see screenshot for reference:


  6. Start the smarts-rabbitmq service
    ./sm_service start <rabbitmq service>
  7. Verify that the rabbitmq log is being created under <SAM_BASE>/smarts/local/logs.