2

I want to inspect the logs of an AmazonMQ broker containing information about when a message was enqueued and with which parameters.

AWS provides two options to log activities from the AmazonMQ brokers to CloudWatch called general and audit, but none include the log entries for enqueued messages.

The ActiveMQ official documentation specifies an option called loggingBrokerPlugin, which can be set to log everything, including events when a message gets enqueued and dequeued. Still, AmazonMQ does not support this option in its configuration. I tried to add this option, but AWS sanitizes the configuration file and removes the entry.

Is there a way around this problem?

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
NĂ­colas Iensen
  • 3,899
  • 4
  • 22
  • 26

1 Answers1

0

It doesn't seem to be possible. An alternative is to use CloudWatch, where for particular broker and queue/topic duo you can observe a bunch of metrics. Among them you can find EnqueueCount and DequeueCount (Monitoring Amazon MQ brokers using Amazon CloudWatch). It is less than ideal, but allows some reasoning about messages going through.

Jacek Prucia
  • 1,026
  • 2
  • 12
  • 22