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.
$ 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
chmod +x rabbitmq-collect-env
./rabbitmq-collect-env
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