Skip to Content
Author's profile photo Michal Krawczyk

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.

Step 1

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.

/wp-content/uploads/2013/03/ws_input_193381.png

Fire it up and the result…

/wp-content/uploads/2013/03/ws_result_193382.png

…will be the same as with normal monitoring.

/wp-content/uploads/2013/03/ws_monitoring_193383.png

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.

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Michal Basl
      Michal Basl

      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.

      Author's profile photo vimal pillai
      vimal pillai

      Hi Michal,

      These screenshots are from WSNavigator.

      Goto http://<host>:port/wsnavigaor

      Select Provider System

      Write AdapterMessageMonitoringVi and click enter.

      You will find the below screen.

      Author's profile photo vimal pillai
      vimal pillai

      Hi Michal,

      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

      Vimal Pillai