Skip to Content
Technical Articles

Application Logging by using Web-based Kibana UI in SAP Cloud Foundry

As we know there are many things to explore in SAP Cloud Foundry, and there are many services available in cloud foundry with unique capabilities.

Here in this blog i Just wanted to showcase the capabilities of Application Logging Service in SAP Cloud foundry.

 

What is Application Logging-

We can use Application logging to Create, store, access and analyze application logs. The SAP Cloud Platform Application Logging service on Cloud Foundry lets you stream logs of bound applications to a central application logging stack.

Application Logging on Cloud Foundry uses Elastic Stack to visualize and store your application log data.

We can see data in form of table as well as in web based Kibana Dashboard.

 

Environment

This service runs in the following environments:

  • Neo environment
  • Cloud Foundry environment – I am using this approach to show our scenarios

Features

  • Structured and rich log messages

Benefit from automatically structured log messages stored in Elasticsearch, harmonized across different runtimes, with meta-data, metrics, and custom values which offer a rich basis for deep analysis.

  • Web-based Kibana UI

View, search, and analyze logs via the powerful Kibana technology with predefined dashboards and quickly identify relevant spots via interactive exploration.

  • Log libraries for Java and Node.js apps

Use dedicated open source logging libraries for simple log production for Java and Node.js applications in the Cloud Foundry environment.

  • Retention period

Exploit the retention period of up to 7 days which lets you do a post-mortem analysis.

 

Steps to Access-

Assumption:

You have already created an account in SCP Cloud foundry.

You have already few apps deployed, start and available in cloud foundry such as java, node js.

I am using JAVA application to display the logs in Kibana dashboard.

 

  1. Create Service Instance for Application logging service

This below help doc will help you to understand Application logging and other related features in more details like how to create instance.

 

Service Market Place –> Application Logging –> Create instance

https://help.sap.com/viewer/ee8e8a203e024bbb8c8c2d03fce527dc/Cloud/en-US/3da50b904a314eed8c5daa671d12b647.html

 

Service%20Instance

Service Instance

  1. Application Binding

Service Instance –> Select Service and bind app –> select your app

Below helps doc will help you to understand in more details.

https://help.sap.com/viewer/ee8e8a203e024bbb8c8c2d03fce527dc/Cloud/en-US/bd2cd9db8db547f0b66c026a35a55dfc.html

 

Application%20Binding

Application Binding

  1. Select Applications page in your dev space.

Select any one Started application, in my case I am selecting last apps Highlighted with green colour which is java app.

Application%20Page

Application Page

After clicking on app, you will reach to another page which would be look like below.

 

Click on Logs — Highlighted in green color box

 

 

You will be able to see logs below.

 

Logs-%20You%20can%20also%20export%20Logs

Logs- You can also export Logs

 

 

To open Kibana Dashboard click on “Open Kibana Dashboard Button” Highlighted in Yellow Box it will navigate to login screen

Open%20Kibana%20Dashboard

Open Kibana Dashboard

Let me talk about Kibana first –

Kibana is an open source frontend application that sits on top of the Elastic Stack, providing search and data visualization capabilities for data indexed in Elasticsearch. Commonly known as the charting tool for the Elastic Stack , Kibana also acts as the user interface for monitoring, managing, and securing an Elastic Stack cluster — as well as the centralized hub for built-in solutions developed on the Elastic Stack.

https://www.elastic.co/kibana

Login Screen

 

Login%20Screen

Login Screen

You can see total logs, log time, performance, log timeline ,dropped logs, metrics, error code  etc. for particular app.

Here whatever information you are able to see it is all related to my Java application which i have used at the time of binding.

 

 

You can also create Visualizations

Settings

Settings

 

Here in this blog we have talked about the capabilities of Application Logging service in SAP Cloud foundry and integration with KIBANA Web Based UI.

Hope you all will like it.

Keep Exploring and Happy Learning.

Thanks and Regards

Naveen Kumar Jain

4 Comments
You must be Logged on to comment or reply to a post.
  • Great blog, Naveen. Thanks for posting.

    For the readers, you may find the SAP Cloud Platform Onboarding video tutorial series by Philip MUGGLESTONE of interest which shows how to set this up

    • https://blogs.sap.com/2020/10/20/sap-cloud-platform-developer-onboarding-iii-hands-on-video-tutorials/
  • Thanks for the information Naveen, great blog.

    I just want to ask about the possible actions that we can do with Kibana in SAP Cloud foundry env.

    I have been searching for the possibility to add custom code to Kibana, I mean Kibana plugins.Is it possible to add Kibana plugins here ?Are we allowed ?

     

    • hanks Leila,

      Thanks for the same

      Kibana is integrated with cloud foundry to Create, store, access and analyze application log. and even you can create visualization also.

      As per my knowledge  integrated Kibana in CF should allow all the features which standalone Kibana Allows.

       

      Regards

      Naveen Jain