Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
Showing results for 
Search instead for 
Did you mean: 
Developer Advocate
Developer Advocate

The third and last SAP Tech Bytes related to the SAP Audit Log service was published today. In this blog post, I will share the details on what is covered in today's video - Store audit log entries in the Object Store using SAP Cloud Integration.

In this SAP Tech Bytes, we will continue to explore the SAP Audit Log service. In this instance, we will extend the integration flow previously created in SAP Cloud Integration to store the data retrieved from the Audit Log Retrieval API in an Object Store. For this, we first create an instance of AWS S3 in Open Connectors, deploy some new credentials and then proceed to create the connection from SAP Cloud Integration to our new Open Connectors instance. Once everything is setup, we will test our integration flow and check the files created in the Object Store.

In case you missed the previous SAP Tech Bytes, check them out here:

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.

Creating an instance of AWS S3 in Open Connectors

In the third and last part of the series, we go through the following:

0:00   Intro
1:19   Create an instance of the Object Store
2:13   Create a service key of the Object Store
3:15   Test the service key credentials with the AWS CLI
5:45   Create an instance of AWS S3 in Open Connectors
6:46   Test the instance API in Open Connectors
9:23   Deploying the Open Connectors instance credentials
10:14 Extend the integration package
11:49 Handle multipart/form-data payload in SAP Cloud Integration (blog post)
12:40 Define Content-Type and Payload
14:23 Prepare Payload (Groovy script)
19:29 Add new objectStoreCredentials property to integration flow
20:32 Connect to Open Connectors API
22:33 Deploy and test integration flow
23:48 Fix Content-Type value and redeploy integration flow
25:00 Extract different date ranges
26:24 Check files created in the Object Store
27:22 Outro

Visit the SAP Discovery Center to learn more about the free tier services available in the SAP Business Technology Platform:

I hope you find this new SAP Tech Bytes 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.