< Vendor_Plug>
May I suggest you have a look at MQ Auditor as this is one of its use case. MQ Auditor can track all MQ API calls of a queue manager issued by an application but if you are only interested in gets & puts then you can configure to just track those API calls. The audit data for each API call is written to a CSV file as 1 long line as human-readable information. And if you are not interested in including the message data (payload), you can exclude it. The user can configure what fields are to be included in the audit data.
This example of an MQPUT1 API call is just 1 long line:
2024/11/27 19:10:34.980656, MQXF_PUT1, A, PID=7508, TID=4, CC=0, RC=0, UserId=tester, HConn=20971531, OD_ObjName=TEST.Q2, OD_DynamicQNames=AMQ.*, PMO_Options=MQPMO_NO_SYNCPOINT+MQPMO_FAIL_IF_QUIESCING+MQPMO_SYNC_RESPONSE, PMO_ResolvedQMgrName=MQWT2, PMO_ResolvedQName=TEST.Q2, MD_PutDate=2024/11/28, MD_PutTime=00:10:34.98, MD_MsgId=414D51204D5157543220202020202020E4B44767015F0040, MD_Format=MQSTR, MD_MsgType=MQMT_DATAGRAM, MD_Persistence=MQPER_PERSISTENCE_AS_Q_DEF, MD_UserId=tester, BufferLength=23, MsgData=This is a test message.
< /Vendor_Plug>
------------------------------
Roger Lacroix
CTO
Capitalware Inc.
London Canada
https://capitalware.com------------------------------