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

different "audit logging message" between openwire & amqp protocol

XMLWordPrintable

    • ARTEMIS-2887
    • Verified in a release
    • Hide

      enable audit logging of messages:

      logger.org.apache.activemq.audit.message.level=TRACE

      Show
      enable audit logging of messages: logger.org.apache.activemq.audit.message.level=TRACE

      Enabling "audit logging message" to "TRACE", we can get size with openwire protocol but not with amqp:

      with openwire protocol:

      2020-08-23 14:48:38,751 [AUDIT](Thread-0 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$6@2b58f754)) AMQ601500: User test is sending a core message on target resource: ServerSessionImpl(jms-session=*N/A*) [with parameters: [TransactionImpl [xid=null, txID=17, xid=null, state=ACTIVE, createTime=1598212118609(Sun Aug 23 14:48:38 CDT 2020), timeoutSeconds=300, nr operations = 0]@2b626089, CoreMessage[messageID=0,durable=true,userID=a3a3197a-e579-11ea-8162-be676260a8b4,priority=4, timestamp=Sun Aug 23 14:48:38 CDT 2020,expiration=0, durable=true, address=TEST,size=356,properties=TypedProperties[__AMQ_CID=a3886587-e579-11ea-8162-be676260a8b4,count=0,ThreadSent=Producer ActiveMQQueue[TEST], thread=0,_AMQ_ROUTING_TYPE=1]]@2107873742, true, false, RoutingContextImpl(Address=null, routingType=null, PreviousAddress=null previousRoute:null, reusable=null, version=0)
      

      With amqp protocol:

      ..................................................
      ***** durable queues Audit:
      - queueID=2274269315 address:Audit name:Audit filter:null
      ***** non durable for Audit:
      ..................................................
      ]]
      2020-08-24 23:00:08,136 [AUDIT](Thread-2 (activemq-netty-threads)) AMQ601500: User amquser is sending a core message on target resource: ServerSessionImpl() [with parameters: [TransactionImpl [xid=XidImpl (888646902 bq:97.109.113.112 formatID:1 gtxid:56.100.101.99.57.51.49.53.45.101.54.53.100.45.49.49.101.97.45.97.54.51.57.45.48.97.53.56.48.97.56.51.48.50.101.57 base64:YW1xcDhkZWM5MzE1LWU2NWQtMTFlYS1hNjM5LTBhNTgwYTgzMDJlOQEAAAA=, txID=13090219128, xid=XidImpl (888646902 bq:97.109.113.112 formatID:1 gtxid:56.100.101.99.57.51.49.53.45.101.54.53.100.45.49.49.101.97.45.97.54.51.57.45.48.97.53.56.48.97.56.51.48.50.101.57 base64:YW1xcDhkZWM5MzE1LWU2NWQtMTFlYS1hNjM5LTBhNTgwYTgzMDJlOQEAAAA=, state=ACTIVE, createTime=1598310007566(Mon Aug 24 23:00:07 UTC 2020), timeoutSeconds=-1, nr operations = 3]@26698d4a, org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessage@7096cc54, true, false, RoutingContextImpl(Address=null, routingType=null, PreviousAddress=null previousRoute:null, reusable=null, version=0)
      ..................................................
      ]]
      

              csuconic@redhat.com Clebert Suconic
              rhn-support-aboucham Abel Bouchama
              Oleg Sushchenko Oleg Sushchenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: