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.
Run the command bosh -d <rabbitmq_deployment> ssh rabbitmq-server/x , targeting the RabbitMQ deployment and server you wish to collect the logs for.
sudo -i
$ 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 PCF RabbitMQ is: /var/vcap/sys/log/rabbitmq-server/
# ./rabbitmq-collect-env ......_......_...........___..__.....__...EEEE........................... [INFO] output archive: '/var/vcap/sys/log/rabbitmq-server/rabbitmq-env-<node-id>-<date>-<time>.tgz'
How to collect OSS RabbitMQ logs using the rabbitmq-collect-env script