How to collect OSS RabbitMQ logs using the rabbitmq-collect-env script
search cancel

How to collect OSS RabbitMQ logs using the rabbitmq-collect-env script

book

Article ID: 297337

calendar_today

Updated On:

Products

Support Only for OpenSource RabbitMQ

Issue/Introduction

The script collects RabbitMQ and selected OS logs, system-level metrics and other environment information that can provide insight into the overall state of the node.


For using this script on VMware Tanzu RabbitMQ (VMs), follow the instructions in the related article.

Environment


Resolution

  1. Download the script from Github to the environment. Either of the following commands can be used to download the script: 
    $ curl -LO https://raw.githubusercontent.com/rabbitmq/support-tools/master/scripts/rabbitmq-collect-env
    
    $ wget https://raw.githubusercontent.com/rabbitmq/support-tools/master/scripts/rabbitmq-collect-env
    
  2.  Make the script executable using chmod +x rabbitmq-collect-env
  3.  Run the script using ./rabbitmq-collect-env


Additional Information

The default log file location on OSS RabbitMQ is: /var/log/rabbitmq/

# ./rabbitmq-collect-env
............._...........___..__.....__....._......................
[INFO] output archive: '/var/log/rabbitmq/rabbitmq-env-<node-name>-<date>-<time>.tgz'

 

Related Article for VMware Tanzu RabbitMQ (VMs)
How to collect RabbitMQ logs using rabbitmq-collect-env script