diff --git a/content/en/docs/v3.3/faq/observability/logging.md b/content/en/docs/v3.3/faq/observability/logging.md index 2f4c05ca4..45809971b 100644 --- a/content/en/docs/v3.3/faq/observability/logging.md +++ b/content/en/docs/v3.3/faq/observability/logging.md @@ -88,7 +88,7 @@ Currently, KubeSphere doesn't support the integration of Elasticsearch with X-Pa Before KubeSphere v3.3.0, you can only set the retention period of logs, which is 7 days by default. In KubeSphere v3.3.0, apart from logs, you can also set the data retention period of events, auditing logs, and Istio logs. -You need to update the KubeKey configuration and rerun `ks-installer`. +Perform the following to update the KubeKey configurations. 1. Execute the following command: @@ -96,7 +96,7 @@ You need to update the KubeKey configuration and rerun `ks-installer`. kubectl edit cc -n kubesphere-system ks-installer ``` -2. In the YAML file, if you only want to change the retention period of logs, you can directly change the default value of `logMaxAge` to a desired one. If you want to set the retention period of events, auditing logs, and Istio logs, you need to add parameters `auditingMaxAge`, `eventMaxAge`, and `istioMaxAge` and set a value for them, respectively, as shown in the following example: +2. In the YAML file, if you only want to change the retention period of logs, you can directly change the default value of `logMaxAge` to a desired one. If you want to set the retention period of events, auditing logs, and Istio logs, add parameters `auditingMaxAge`, `eventMaxAge`, and `istioMaxAge` and set a value for them, respectively, as shown in the following example: ```yaml @@ -118,10 +118,27 @@ You need to update the KubeKey configuration and rerun `ks-installer`. ... ``` -3. Rerun `ks-installer`. + {{< notice note >}} + If you have not set the retention period of events, auditing logs, and Istio logs, the value of `logMaxAge` is used by default. + {{}} - ```bash - kubectl rollout restart deploy -n kubesphere-system ks-installer +3. In the YAML file, detete the `es` parameter, save the changes, and ks-installer will automatically restart to make the changes take effective. + + ```yaml + apiVersion: installer.kubesphere.io/v1alpha1 + kind: ClusterConfiguration + metadata: + name: ks-installer + namespace: kubesphere-system + ... + status: + alerting: + enabledTime: 2022-08-11T06:22:01UTC + status: enabled + ... + es: # delete this line. + enabledTime: 2022-08-11T06:22:01UTC # delete this line. + status: enabled # delete this line. ``` ## I cannot find logs from workloads on some nodes using Toolbox diff --git a/content/zh/docs/v3.3/faq/observability/logging.md b/content/zh/docs/v3.3/faq/observability/logging.md index 62e8e7539..c2b529093 100644 --- a/content/zh/docs/v3.3/faq/observability/logging.md +++ b/content/zh/docs/v3.3/faq/observability/logging.md @@ -89,7 +89,7 @@ KubeSphere 暂不支持启用 X-Pack Security 的 Elasticsearch 集成,此功 在 KubeSphere v3.3.0 之前的版本,您只能修改日志的保存期限(默认为 7 天)。除了日志外,KubeSphere v3.3.0 还支持您设置审计、事件及 Istio 日志信息的保留期限。 -您需要更新 KubeKey 配置并重新运行 `ks-installer`。 +参考以下步骤更新 KubeKey 配置。 1. 执行以下命令: @@ -118,10 +118,27 @@ KubeSphere 暂不支持启用 X-Pack Security 的 Elasticsearch 集成,此功 ... ``` -3. 重新运行 `ks-installer`。 + {{< notice note >}} + 如果您未设置审计、事件及 Istio 日志信息的保留期限,默认使用 `logMaxAge` 的值。 + {{}} - ```bash - kubectl rollout restart deploy -n kubesphere-system ks-installer +3. 在 YAML 文件中,删除 `es` 部分的内容,保存修改,ks-installer 会自动重启使配置生效。 + + ```yaml + apiVersion: installer.kubesphere.io/v1alpha1 + kind: ClusterConfiguration + metadata: + name: ks-installer + namespace: kubesphere-system + ... + status: + alerting: + enabledTime: 2022-08-11T06:22:01UTC + status: enabled + ... + es: # delete this line. + enabledTime: 2022-08-11T06:22:01UTC # delete this line. + status: enabled # delete this line. ``` ## 无法使用工具箱找到某些节点上工作负载的日志