< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Log Collection

This section introduces how to use the log collection feature.

After enabling the log collection feature, KubeSphere will read the log files saved on the volumes by the containers and then print the contents of the log files to the standard output of the containers. The following steps are required to use the log collection feature:

  1. Install and enable the "WhizardTelemetry Logging" extension.

  2. Enable logsidecar-injector in the configuration of the "WhizardTelemetry Logging" extension. For more information, see Enable Log Collection.

  3. Enable log collection in the project.

  4. Set the container to output the log files to a path inside the container. For more information, contact the developer of the image in the container.

  5. Enable Collect Logs on Volumes when creating workloads, services, or Jobs, mount a read-write volume for the container, and set the path of the log files.

  6. Use the toolbox to query container logs. For more information, see Use the Container Log Query Tool.

Enable Log Collection

This section introduces how to modify the configuration of the extension to enable the log collection feature.

Enable Log Collection in a Project

This section introduces how to enable log collection.

Enable Collect Logs on Volumes

This section introduces how to enable collect logs on volumes.