Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3244

Audit logging logs to little information

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.15.0
    • None
    • None

    Description

      In release 2.13 issue ARTEMIS-2648 Improve the Audit logging capabilities - ASF JIRA (apache.org) was fixed. One of the changes made was a change in the AMQ601500 message in the AuditLogger-interface:

      @LogMessage(level = Logger.Level.INFO) @Message(id = 601500, value = "User {0} is sending a core message with Context: {1}", format = Message.Format.MESSAGE_FORMAT) 
      void sendMessage(String user, Object context); 

      A consequence of this is a lack of audit logging.

      Previously (i.e. version 2.11) information regarding the actual message was logged. Now only the following remains when message-level audit logging is turned on.

      2021-04-14 17:55:02,606 [AUDIT](Thread-6 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$6@6fefce9e)) AMQ601500: User #######(amq)@127.0.0.1:52938 is sending a core message with Context: RoutingContextImpl(Address=null, routingType=null, PreviousAddress=null previousRoute:null, reusable=null, version=0) 

      This is not very helpful audit logging as it contains no reference to the actual message which was send by the user.

      The actual call to the AuditLogger seems to be in the ServerSessionImpl-class and looks like this:

      if (AuditLogger.isMessageEnabled()) {
          AuditLogger.coreSendMessage(getUsername(), routingContext);
      } 

      So it seems the routingContext doesn't contain the necessary information.

       

       

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              clebertsuconic Clebert Suconic
              Jelmer2021 Jelmer Marinus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: