Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-5281

[LTS] Add audit logging for message ack

XMLWordPrintable

      We want to track the message info from end to end in the broker audit log,

      especially the messages which is being acknowledged, we prefer the user, messageId and properties, info like below similar:

      2021-06-28 08:20:26,145 [AUDIT](Thread-8 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$6@6a84a97d)) AMQXXXXXX: User andy(amq)@127.0.0.1:34852 acknowledged a message AMQPStandardMessage( [durable=true, messageID=1987, address=TestKit10.00001.sit1.posttrade.csp.amqp.trx.request, size=1199, applicationProperties={}, properties=Properties{messageId=ID:6a47753c-3cc1-4356-9dc6-dfc1a85a2b18:1:1:1-1, userId=null, from='TestKit10.00001.sit1.posttrade.csp.amqp.trx.request', subject='null', replyTo='null', correlationId=null, contentType=null, contentEncoding=null, absoluteExpiryTime=null, creationTime=Mon Jun 28 08:20:26 AEST 2021, groupId='null', groupSequence=null, replyToGroupId='null'}, extraProperties = null], with Context: RoutingContextImpl(Address=null, routingType=null, PreviousAddress=null previousRoute:null, reusable=null, version=0)

      Now in the audit log, there is only such info which is not enough.

      2021-07-02 10:13:14,646 [AUDIT](Thread-3 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$6@260e86a1)) AMQ601501: User andy(amq)@127.0.0.1:34852 is consuming a message from TEST

      After https://issues.redhat.com/browse/ENTMQBR-5171 is being fixe, the info is like:

      2021-06-28 08:20:26,145 [AUDIT](Thread-8 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$6@6a84a97d)) AMQ601500: User andy(amq)@127.0.0.1:34852 is consuming a message AMQPStandardMessage( [durable=true, messageID=0, address=TestKit10.00001.sit1.posttrade.csp.amqp.trx.request, size=1199, applicationProperties={}, properties=Properties{messageId=ID:6a47753c-3cc1-4356-9dc6-dfc1a85a2b18:1:1:1-1, userId=null, from='TestKit10.00001.sit1.posttrade.csp.amqp.trx.request', subject='null', replyTo='null', correlationId=null, contentType=null, contentEncoding=null, absoluteExpiryTime=null, creationTime=Mon Jun 28 08:20:26 AEST 2021, groupId='null', groupSequence=null, replyToGroupId='null'}, extraProperties = null], with Context: RoutingContextImpl(Address=null, routingType=null, PreviousAddress=null previousRoute:null, reusable=null, version=0)
      

       

            rhn-support-jbertram Justin Bertram
            rhn-support-xiwu Xiaohui Wu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: