Michal’s PO/PI tips: Audit Logs from a native WS – new feature
Sometimes we may need to get the audit logs from PI/PO system for a particular message in order to deliver that to a non SAP monitoring tool. In the past it was not very easy to get them as you had to build a custom extraction tool like the one shown by Maciej Jarecki in this blog: Message details and AuditLog from Java Stack using Custom WebService
As of January this year the standard web service – AdapterMessageMonitoringVi was enhanced a bit for a lof of PI systems (from version 7.1 till 7.31) and not there’s a new method of this web service called – getLogEntries. As you may expect you can get the audit log entries using this new method.
As an entry parameter you need to put the message key (not message ID) and you can always get it using getMessageList method by providing the message ID.
Fire it up and the result…
…will be the same as with normal monitoring.
For more info please have a look at this OSS NOTE – Note 1814549 – add method to retrieve Audit Log to web service.
Hope with this new feature it will be much easier to build custom monitoring apps for PO/PI systems.
Hello, I sow mentioned blog entry, but I'm not still able to understand how to connect and check status of existing message if i know MessageID. Could you a bit more explain (enclose source of webservice java class) please?
Where you pick up these screenshot pictures?
Thanks for any advice.
These screenshots are from WSNavigator.
Select Provider System
Write AdapterMessageMonitoringVi and click enter.
You will find the below screen.
It is always good to see your blogs and the interesting and new stuffs in SAP PI.
I need your help for one case which I am currently working.
I have used Directory API to receive the Channel List but I want to get the Channel Audit Logs. I checked AdapterMessageMonitorVi Interface, but this is not available in Basis Namespace. Also SAP do not allow to use it in external tools.
What is the way to get Audit logs using an External Tool from SAP PI 7.31?
Any suggestions would be helpful.
Thanks & Regards