Enable Log Collection
This section introduces how to modify the configuration of the "WhizardTelemetry Logging" extension to enable the log collection feature.
Note |
---|
After enabling, the Log Collection option will be displayed under the Project Settings menu in the left navigation pane. |
Prerequisites
You should have the platform-admin role on the KubeSphere platform. For more information, see Users and Platform Roles.
WhizardTelemetry Logging should have been installed and enabled.
Steps
Log in to the KubeSphere web console with a user who has the platform-admin role.
Click Extensions Center.
Click the installed WhizardTelemetry Logging extension to enter the details page.
Click under the icon, and select Extension Config.
In the extension configuration file, set the
logsidecar-injector.enabled
parameter totrue
, then save the file.logsidecar-injector: enabled: true
Note Since the job that updates this parameter only runs on the host cluster, setting
logsidecar-injector.enabled
in member clusters will not take effect if you only want to enable or disable the log collection feature for certain member clusters. Each time you modify this parameter, you need to modify the parameter in the host cluster at the same time to trigger the parameter update.For example, when you need to turn off the log collection feature of a certain member cluster, just set
logsidecar-injector.enabled: false
in the configuration of that member cluster, and then addlogsidecar-injector.updateVersion: 1
in the configuration of the host cluster. For subsequent operations, you only need to updatelogsidecar-injector.updateVersion
to trigger the update.
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.