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

5 min read

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.

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

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.

Be the first to hear about news, product updates, and innovation from IBM Cloud