3

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

 3 years ago
source link: https://blogs.sap.com/2021/01/17/application-logging-by-using-web-based-kibana-ui-in-sap-cloud-foundry/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Technical Articles
Posted on January 17, 2021 4 minute read

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

1 Like 35 Views 0 Comments

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 Applicationlogging 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.

Home-Page-1.png

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

Logs_.png

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.

GoldenSignal.png

Metrics.png

Request-Distribution.png

Error-Code.png

You can also create Visualizations

Visual.png

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 Learnig.

Thanks and Regards

Naveen Kumar Jain


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK