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: 
Product and Topic Expert
Product and Topic Expert

UPDATE: May 2022

The onboarding series has been updated. For the latest version, visit

The information presented in this blog is no longer current.

Hands-On Video Tutorials - Part III

philip.mugglestone just updated his developer onboarding video tutorial series for the SAP Cloud Platform. In this blog, you will find the videos embedded with some additional information and resources. Following along in the patented zero-to-hero format, no prior knowledge required, you will be ready to start developing business applications on the platform with minimal effort and no time wasted.

You can watch the two video tutorials in about twenty minutes. What you learn is

  • How to view standard application logs

  • How to work with the Application Logging service and the Kibana dashboard

  • How to integrate application logging into your application

  • How to view standard audit logs

  • How to work with the Auditlog Management service

  • How to integrate audit logging into your application

To bookmark the playlist on YouTube, go to

Because we know your time is precious, we have included code snippets so you can easily and merrily code along. For the GitHub repository with sample code, go to

Application Logging

In this video tutorial, see how to create, access and analyze application-related logs, container metrics and custom metrics in the Cloud Foundry environment. Philip shows how to access the Cloud Foundry application logging service and connect it to a running application before showing how to incorporate application logging into a multi-target application that also includes custom metrics.


0:00 - Access application logs using SAP Cloud Platform cockpit > Application > [app] - Logs

0:50 - Access logs from command line:
cf logs [app] --recent

1:10 - Cloud Foundry Loggregator and Kibana Dashboard

1:50 - Service Marketplace: Application Logging

2:00 - Documentation SAP Cloud Platform Application Logging

2:30 - Create service instance and bind to application

3:15 - Restart application

3:30 - Kibana dashboard

4:10 - Integrate application logging service into application

4:45 - Add service to mta.yml

6:10 - Add package to package.json

6:30 - Add code to server.js

7:55 - Build and deploy

8:15 - Documentation Node.js Logging Support for Cloud Foundry [cf-nodejs-logging-support]

9:00 - Kibana dashboard

Code Samples

For the code samples used in this video tutorial, see the SAP HANA Academy on GitHub.

Learn More

For the service description, see the SAP Cloud Platform Discovery Center

For the documentation, see

SAP Cloud Platform Application Logging uses the Cloud Foundry loggregator and open-source Kibana dashboads. For more information, see

From the community

Audit Logging

In this video tutorial, see how to access audit logs created in the Cloud Foundry environment. While the consumer of application logs is often a system administrator who would like to keep track of the state of a system, audit logs are read by an auditor. There are legal requirements (in some countries stricter than in others) regarding audit logging. Philip shows how to access the Cloud Foundry audit logging viewer application and how to access audit logs via the REST API using Postman and also a custom Node.js microservice.


0:00 - Introducing audit logging

1:10 - Subscriptions audit log viewer

1:35 - Create role collection

2:35 - Auditlog viewer

3:00 - Rest API

3:20 - Create service instance for Auditlog Management

3:45 - Create service key

4:00 - Rest API credentials: client-id, clientsecret, URLs

4:20 - Create POST request in Postman with URL for authentication using basic authentication

5:10 - Returns access token

5:30 - Headers: Authorization = bearer <token>

6:00 - Params: time_from = [UTC]

6:30 - Documentation:

6:50 - Using auditlog in application

7:00 - git clone of sample code for SAP Business Application Studio

7:30 - Code walkthrough: mta.yaml, server.js

8:10 - Build and deploy

8:30 - View results

Code Samples

For the code samples used in this video tutorial, see the SAP HANA Academy on GitHub.

Learn More

For the API information, visit the SAP API Business Hub

As documented

For more information about Postman, see

Share and Connect

Questions? Please post as comment.

Useful? Give us a like and share on social media.


If you would like to receive updates, connect with me on

For the author page of SAP PRESS, visit

Over the years, for the SAP HANA Academy, SAP’s Partner Innovation Lab, and à titre personnel, I have written a little over 300 posts here for the SAP Community. Some articles only reached a few readers. Others attracted quite a few more.For your reading pleasure and convenience, here is a curated list of posts which somehow managed to pass the 10k-view mile stone and, as sign of current interest, still tickle the counters each month.