How-tos

Analyze Logs and Monitor the Health of a Kubernetes Application with LogDNA and Sysdig

Share this post:

Analyze logs and monitor the health of a Kubernetes application with LogDNA and Sysdig

Applications deployed to a Kubernetes cluster in IBM Cloud will likely generate some level of diagnostic output (i.e., logs). As a developer or an operator, you may want to access and analyze different types of logs—such as worker logs, pod logs, app logs, or network logs—to troubleshoot problems and preempt issues. You also want to monitor the health and performance of your application and the cluster the workload is deployed to.

This post is an excerpt from a tutorial that shows how the IBM Log Analysis with LogDNA service can be used to configure and access logs of a Kubernetes application that is deployed on IBM Cloud. You will deploy a Python application to a cluster provisioned on IBM Cloud Kubernetes Service, configure a LogDNA agent, generate different levels of application logs, and access worker logs, pod logs, or network logs. Then, you will search, filter, and visualize those logs through Log Analysis with LogDNA Web UI.

Moreover, you will also set up the IBM Cloud Monitoring with Sysdig service and configure a Sysdig agent to monitor the performance and health of your application and your IBM Cloud Kubernetes Service cluster.

logging and monitoring

Main objectives of the tutorial

  • Deploy an application to a Kubernetes cluster to generate log entries.
  • Access and analyze different types of logs to troubleshoot problems and preempt issues.
  • Gain operational visibility into the performance and health of your app and the cluster running your app.

View the tutorial

The IBM Cloud Kubernetes Service provides an environment to deploy highly available apps in Docker containers that run in Kubernetes clusters.

By using the Log Analysis with LogDNA service, it is possible to aggregate logs from various sources and retain them as long as needed. This allows you to analyze the “big picture” when required and troubleshoot more complex situations.

By adding IBM Cloud Monitoring with Sysdig to the application, you can regularly check the health, performance, availability, and response time of the app.

Your learning won’t stop here—follow the expanded tutorial and related content sections of the tutorial for more content.

Technical Offering Manager & Polyglot Programmer | IBM Cloud

More How-tos stories
May 3, 2019

Kubernetes Tutorials: 5 Ways to Get You Building Fast

Ready to start working with Kubernetes? Want to build your Kubernetes skills? The five tutorials in this post will teach you everything you need to know about how to manage your containerized apps with Kubernetes.

Continue reading

May 3, 2019

Using Portworx to Deploy and Manage an HA MySQL Cluster on IBM Cloud Kubernetes Service

This tutorial is a walkthrough of the steps involved in deploying and managing a highly available MySQL cluster on IBM Cloud Kubernetes Service.

Continue reading

May 2, 2019

Kubernetes v1.14.1 Now Available in IBM Cloud Kubernetes Service

We are excited to announce the availability of Kubernetes v1.14.1 for your clusters that are running in IBM Cloud Kubernetes Service. IBM Cloud Kubernetes Service continues to be the first public managed Kubernetes service to support the latest upstream versions from the community.

Continue reading