本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)17k · #10788

whizard-logging

できること

このスキルは、KubeSphereのロギング拡張機能を設定し、収集されたログを検索するよう支援します。アプリのログ行を見つける必要がある運用者や開発者向けです。

使う場面

  • ✓コンテナのログを収集するため、ロギング拡張機能をインストールしたいとき。
  • ✓アプリがコンテナ内のファイルにログを書いており、それらのログも収集する必要があるとき。
  • ✓ワークロードのログ行を検索する必要があるとき。

スキルのリンク

https://github.com/kubesphere/kubesphere/blob/master/skills/whizard-logging/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/kubesphere/kubesphere/blob/master/skills/whizard-logging/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“当社のホストクラスターにロギング拡張機能をインストールし、チェックアウトのPodの最新のエラーを見せてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは依存関係を確認し、コンテナとディスクのログ収集機能を含むロギング拡張機能をインストールします。保存されたログは、ログのクエリAPIを通じて検索します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

WizTelemetry Logging

Overview

WizTelemetry Logging is an extension component in the KubeSphere Observability Platform for log collection, processing, and storage.

When to Use

  • Installing or configuring the WizTelemetry Logging extension
  • Understanding log collection architecture (container logs + disk log collection)
  • Using the log query API to query logs

Components

Component Description Default Enabled
vector-logging Container log collection (collects stdout/stderr from Docker/Containerd) true
logsidecar-injector Disk log collection (collects logs from files inside containers) false

Dependencies

  • WizTelemetry Platform Service (whizard-telemetry): Required
  • WizTelemetry Data Pipeline (vector): Required
  • OpenSearch (opensearch): Required

Installation

Prerequisites

REQUIRED: Complete all steps in order before generating InstallPlan.

Step 1: Get Available Clusters and Confirm Target

⚠️ CRITICAL: DO NOT proceed until target clusters are determined.

Step 1.1: Get available clusters

kubectl get clusters -o jsonpath='{.items[*].metadata.name}'

Step 1.2: Determine target clusters

  • If user explicitly specified target clusters in the request → Use those clusters directly, proceed to Step 2
  • If user did NOT specify target clusters → Ask user to confirm which clusters to deploy to, then proceed to Step 2

Ask user (if not specified):

Available clusters: host, dev
Which clusters do you want to deploy WizTelemetry Logging to?

Step 2: Get Latest Version (if not provided by user)

MUST do this to get the latest version:

kubectl get extensionversions -l kubesphere.io/extension-ref=whizard-logging -o jsonpath='{range .items[*]}{.spec.version}{"\n"}{end}' | sort -V | tail -1

This outputs the latest version (e.g., 1.4.0). Note this down - you'll use it in the InstallPlan.

Install WizTelemetry Logging

⚠️ IMPORTANT: Complete prerequisite steps BEFORE this step.

Based on your selections:

  • Target clusters: User-confirmed cluster names

⚠️ CRITICAL: InstallPlan metadata.name MUST be whizard-logging. DO NOT use any other name.

⚠️ CRITICAL: config field is YAML format. You MUST:

  • Use the config structure exactly as shown in the template
  • DO NOT add configuration fields that are not shown in the template
  • DO NOT modify the structure or hierarchy

⚠️ CRITICAL: All placeholders MUST be replaced with actual values. DO NOT leave them as placeholders.

Template

apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
  name: whizard-logging
spec:
  extension:
    name: whizard-logging
    version: <VERSION>  # From Step 2
  enabled: true
  upgradeStrategy: Manual
  clusterScheduling:
    placement:
      clusters:
        - <TARGET_CLUSTERS>

Replace placeholders:

  • <VERSION>: From Step 2 (e.g., 1.4.0)
  • <TARGET_CLUSTERS>: User-confirmed cluster names

Note: OpenSearch sink configuration (endpoints, auth) is provided by the vector extension. Make sure vector is installed and configured with OpenSearch before installing logging.

Enable Disk Log Collection

To enable disk log collection, add logsidecar-injector to the config:

apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
  name: whizard-logging
spec:
  extension:
    name: whizard-logging
    version: <VERSION>  # From Step 2
  enabled: true
  upgradeStrategy: Manual
  config: |
    logsidecar-injector:
      enabled: true
    vector-logging:
      filter:
        extraLabelSelector: "app.kubernetes.io/name!=kube-events-exporter"
      calico:
        enabled: true
      systemd:
        docker:
          enabled: true
        kubelet:
          enabled: true
      sinks:
        opensearch:
          enabled: true
          index:
            prefix: "{{ .cluster }}-logs"
            timestring: "%Y.%m.%d"
  clusterScheduling:
    placement:
      clusters:
        - <TARGET_CLUSTERS>

Configuration Parameters

Logsidecar Injector Parameters

Parameter Type Default Description
logsidecar-injector.enabled bool false Enable disk log collection
logsidecar-injector.sidecar.sidecarType string vector Sidecar type
logsidecar-injector.resources.limits.cpu string 100m CPU limit
`logsi
よくある質問

どの種類のログが収集されますか?

コンテナの出力を収集します。また、任意の部分を通じて、コンテナ内のファイルに書かれたログも収集できます。

ディスクログの収集は既定でオンですか?

いいえ。ディスクログのコレクターは既定でオフだとこのスキルは挙げています。

ロギングには何が必要ですか?

プラットフォームサービス、データパイプライン、OpenSearchがインストールされている必要があります。

詳細

作者による元の説明

Use when working with WizTelemetry Logging extension for KubeSphere, including installation, configuration, and log query API

repo: kubesphere/kubesphere

人気

GitHubのスター
17k
ランキング
#10788
ライセンス
—
更新日
2026/7/14

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル