App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Able to publish monitoring event for xml format but not for json format

  • 1.  Able to publish monitoring event for xml format but not for json format

    Posted Fri August 30, 2024 12:23 PM

    If I use this in my server yaml, I can publish monitoring events to a remote queue manager using ccdt.

    BusinessEvents: # Monitoring events
        MQ:
          policy: '{MQEventLogPolicy}:MQCCDT'                # Specify a {policy project}:policy if not using  'defaultQueueManager'
          enabled: true            # Set true or false, default false
          format: ''                # Set string or none
          outputFormat: 'xml'       # Set comma separated list of one or more of : json,xml. Defaults to 'xml'

    but when I change the format to json, I get the error.

    BusinessEvents: # Monitoring events
        MQ:
          policy: '{MQEventLogPolicy}:MQCCDT'                # Specify a {policy project}:policy if not using  'defaultQueueManager'
          enabled: true            # Set true or false, default false
          format: ''                # Set string or none
          outputFormat: 'json'       # Set comma separated list of one or more of : json,xml. Defaults to 'xml'

    An error occurred publishing integration node event on topic '$SYS/Broker/integration_server/MonitoringEvents/JSON/is2/EIL_Loopback_APP/HTTP_LoopBack_Monitoring_Flow' using the 'MQ' transport. 
    : BIP2666E: Unable to open queue '$SYS/Broker/integration_server/MonitoringEvents/JSON/is2/EIL_Loopback_APP/HTTP_LoopBack_Monitoring_Flow' on IBM MQ queue manager '*LOGSVCS': completion code 2; reason code 2035. 

    What could be the reason??

    subscription are defined for topicstring - $SYS/Broker/integration_server/MonitoringEvents/JSON/is and $SYS/Broker/integration_server/Monitoring/is, pointing to different queues. 



    ------------------------------
    Pankaj Gupta
    ------------------------------


  • 2.  RE: Able to publish monitoring event for xml format but not for json format

    Posted Mon September 02, 2024 02:34 AM

    Hi,

    mqrc 2035 = MQRC_NOT_AUTHORIZED.

    Did you check the mq error logs (/var/mqm/qmgrs/<qmgr>/errors)? These will probably show what the authorization error is.



    ------------------------------
    Kim Meynendonckx
    ------------------------------