Skip to main content

Kubernetes

To collect logs from Kubernetes containers and the applications in Kubernetes containers, check the following.

Agent Update

It is available from Kubernetes agent 1.1.35. For more information about update, see the following.

Checking the agent settings

Home > Select Project > Log > Log Setting

Select a project in the initial screen of the WhaTap monitoring service, and then select Log > Log Setting under Project Menu. Proceed with the process according to the instructions in the Check Agent CONF. tab of the Set up the agent and enable log monitoring section.

Enabling the container log collection

Kubernetes Log Node Agent Setting

To collect logs in Kubernetes containers, select Apply log settings in the Check agent configuration tab.

Enabling application log collection in the container

It is available from Java 2.1.1 and Python 1.2.2. To collect logs of the applications running on Kubernetes containers, see the following.

Kubernetes Log Application Agent Setting

  1. On the lower part of Check agent settings, select number1 Agent CONFIG. menu icon Agent CONFIG..

  2. Go to Application Agent CONFIG., and then select Direct Input in the number2 Write Options window.

  3. Enter the key, logsink_enabled and the value, true of the following agent configuration command in the number 3 field.

    logsink_enabled=true 
  4. Select number4 Apply. You can collect application logs in the Kubernetes containers.

  • For more information about the collection of Java application logs, see the following.

  • For more information about the collection of Python application logs, see the following.

  • For more information about the collection of Go application logs, see the following.

Enabling the log monitoring

Home > Select Project > Log > Log Setting

You can enable or disable the WhaTap log monitoring with the toggle button in the Activate log monitoring tab of the Starting the log monitoring section.

Starting the log monitoring

  • If you turn on Icon, the log monitoring is enabled. You can try for free for 15 days from the activation date.
  • If you turn off Icon, the log monitoring is disabled. Logs are no longer saved.

Role

After agent installation, you can enable the log monitoring settings only when you have the edit permission on the project. For more information about the roles, see the following.

Kubernetes log monitoring category guide

You can check various logs related to Kubernetes. The monitoring categories provided by WhaTap Kubernetes are as follows. Depending on the settings, duplicate log contents may be stored. Be sure to check for duplicates.

CategoryDescription
#K8sEvent
  • Logs that store the events that occur in Kubernetes
  • Generation by default regardless of user settings
#WhatapEvent
  • Logs that store the events that occur by WhaTap event settings
  • Generation by default regardless of user settings
containerStdout
  • Container Standard Out logs
  • Generation by user settings
  • When logsink_enabled=true setting is added to the node agent
AppLog
  • Application logs in the container
  • Generation by user settings
  • When logsink_enabled=true setting is added to the application agent