Skip to main content
Sumo Logic

Collect Logs and Metrics for RabbitMQ

This page shows you how to configure log and metric collection for RabbitMQ, as well as providing log and query examples.

This page provides instructions for configuring log and metric collection for the Sumo Logic App for RabbitMQ.

Collection Process Overview

Configuring log and metric collection for the RabbitMQ App includes the following tasks:

Step 1: Configure Fields in Sumo Logic

Create the following Fields in Sumo Logic prior to configuring collection. This ensures that your logs and metrics are tagged with relevant metadata, which is required by the app dashboards. For information on setting up fields, see the Fields help page.

If you are using RabbitMQ in a non-Kubernetes environment create the fields:

  • component
  • environment
  • messaging_system
  • messaging_cluster
  • pod

If you are using RabbitMQ in a Kubernetes environment create the fields:

  • pod_labels_component
  • pod_labels_environment
  • pod_labels_messaging_system
  • pod_labels_messaging_cluster

Step 2: Configure Collection for RabbitMQ

Sumo Logic supports collection of logs and metrics data from RabbitMQ in both Kubernetes and non-Kubernetes environments. 

Please click on the appropriate links below based on the host environment.

Sample Log Message


     "log":"2021-06-14 06:04:02.885 [debug] <0.3106.0> Asked to [re-]register this node   (rabbit@rabbitmq-1) with epmd...",


2021-06-14 12:59:00.004 [debug] <0.29866.49> User 'guest' authenticated successfully by backend rabbit_auth_backend_internal
Host: broker-1 Name: /var/log/rabbitmq/rabbit.log Category: logfile