Leigh,
Thanks for your comment - I was getting out the SMF 120 records - but I didnt have <auditInterceptor id="auditInterceptor" sequence="1"/>
I did have <zosconnect_auditInterceptor id="auditInterceptor" sequence="1" apiProviderSmfVersion="2"/>
with the same id.. which I thought was the same.
I now have
<zosconnect_zosConnectManager
globalInterceptorsRef="interceptorList1"
globalAdminGroup="TEST"
globalInvokeGroup="SYS1"
globalOperationsGroup="TEST"
globalReaderGroup="TEST"
/>
<zosconnect_authorizationInterceptor id="zosConnectAuthorizationInterceptor"/>
<zosconnect_auditInterceptor id="zoscauditInterceptor" sequence="1" apiProviderSmfVersion="2"/>
<auditInterceptor id="auditInterceptor" sequence="1"/>
<zosconnect_zosConnectInterceptors
id="interceptorList1"
interceptorRef="zosConnectAuthorizationInterceptor,auditInterceptor,zoscauditInterceptor "/>
https://www.ibm.com/support/knowledgecenter/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/twlp_zconnect_rest.html item 7 says nothing about having to configure it -
I used a curl request with https://10.1.3.10:9443/zosConnect/services/stockQuery?action=invoke
Even with the above interceptor added I still get ServiceStatisics{}.. ..
am I missing something else?
regards
Colin
------------------------------
Colin Paice
------------------------------
Original Message:
Sent: Fri October 02, 2020 01:28 PM
From: Leigh Compton
Subject: Are there any stats? I just get ServiceStatistics:{} with nothing it in it/
Did you enable the audit interceptor? See https://www.ibm.com/support/knowledgecenter/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/twlp_zconnect_audit.html for instructions on how to add the audit interceptor to your server configuration.
------------------------------
Leigh Compton
Original Message:
Sent: Thu October 01, 2020 11:56 AM
From: Colin Paice
Subject: Are there any stats? I just get ServiceStatistics:{} with nothing it in it/
Im using
All I get back is
{"zosConnectStatistics":[{"stockQuery":{"ServiceProvider":"IBM MQ for z\/OS","InvokeRequestCount":21,"TimeOfRegistrationWithZosConnect":"2020-10-01 14:52:26:049 BST","ServiceStatistics":{}}}]}
it gives ServiceStatistics:{} ... please can you tell me how I get statistics into this field
thank you
Colin