Skip to Content
Technical Articles
Author's profile photo Antonio Maradiaga

Exploring the SAP Audit Log Service

A new SAP Tech Bytes series is starting today. In this blog post, I will share what is covered in the video that was release today (2022-06-27) and the videos that will be released in the next couple of weeks.

The SAP Audit Log service is a platform service which stores all the audit logs written on your behalf by other platform services that you use. It allows you to retrieve the audit logs for your subaccount via the Audit Log Retrieval API or view them using the Audit Log Viewer. The SAP Audit Log service only stores audit log entries written by SAP BTP services, when taking action over your account data. As a developer, the custom applications/services (non-SAP), that you deploy to SAP BTP, do not have write access to the Audit Log Service.

SAP%20Tech%20Bytes%20-%20Exploring%20the%20SAP%20Audit%20Log%20service

SAP Tech Bytes – Exploring the SAP Audit Log service

In these new SAP Tech Byte series, I will be exploring the SAP Audit Log service, which is a free service part of the SAP Business Technology Platform. I will start by giving an overview of the service and interacting with it via the API. In the second part, I will proceed to use SAP Cloud Integration to extract the data from the API. In the last part of the series, I will show you how we can store the log entries in SAP HANA Cloud or in an Object Store with SAP Cloud Integration. The architecture diagram below captures what the whole series will cover.

Services%20used%20in%20the%20SAP%20Tech%20Bytes%20-%20Exploring%20the%20SAP%20Audit%20Log%20service

Services used in the SAP Tech Bytes – Exploring the SAP Audit Log service

In case you wonder how I created the architecture diagram above… Hint: No diagram tools used, just code. I will be sharing the details in a future blog post. Stay tuned 📻. Check out this blog post – https://blogs.sap.com/2022/06/29/creating-architecture-diagrams-with-code/.

In this first part of the series, I cover the following:

  • 0:00 Intro
  • 1:11 SAP Audit Log Service overview
  • 4:41 Audit Log Viewer
  • 7:15 What’s required to interact with the Audit Log service API
  • 9:35 Create an instance of the Audit Log Management service
  • 13:00 Create service key for the instantiated service
  • 14:20 Call the Audit Log Retrieval API from Postman
  • 14:48 Get an access token (authentication)
  • 17:05 Retrieving Audit Log records
  • 19:13 Pagination – handle query parameter

I hope you find these new SAP Tech Bytes series useful. If you want to be notified of future SAP Tech Bytes videos or just videos focused on SAP Developers, make sure to subscribe to the SAP Developers YouTube channel.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.