huawei-cloud-cce-log-analyzer

Query and analyze Huawei Cloud CCE Pod, application, audit, and control-plane logs.

1|Updated May 27, 2026
One-click install
npx skills add https://github.com/pancake0001/huawei-cloudnative-skills --skill huawei-cloud-cce-log-analyzer-pancake0001
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: huawei-cloud-cce-log-analyzer
Source: https://github.com/pancake0001/huawei-cloudnative-skills/tree/main/releases/container/cce/huawei-cloud-cce-log-analyzer
Command: npx skills add https://github.com/pancake0001/huawei-cloudnative-skills --skill huawei-cloud-cce-log-analyzer-pancake0001

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires hcloud, kubectl, and includes scripts (resource) and references (resource) components.

What problem does it solve? Investigating Kubernetes issues on Huawei Cloud CCE requires correlating Pod stdout, application logs in LTS, audit events, and control-plane logs across multiple tools and APIs, which is slow and error-prone when done manually. ## Core Features & Use Cases - Pod and Application Log Analysis: Retrieve Pod stdout/stderr (current or previous container) and query or analyze application logs collected to LTS through CCE LogConfig or LTS Access Config rules, with abnormal-ratio, incident-window, and error-pattern reporting. - Audit and Control-Plane Insight: Query CCE audit logs to find who changed or deleted resources, build resource change timelines, and analyze kube-apiserver status codes/latency and kube-scheduler scheduling, binding, and preemption failures. - Collection Rule Management: Preview and create or delete CCE LogConfig and LTS Access Config collection rules with a mandatory confirmation flow. - Use Case: A Deployment is failing after a release. Query the application's LTS logs for error spikes, check the audit timeline for who changed the workload, and analyze kube-scheduler logs for binding failures, all from one skill. ## Quick Start Ask the assistant to analyze the logs of a specific Pod or application in your CCE cluster by providing the region, cluster ID, namespace, and Pod or application name.

Frequently Asked Questions about huawei-cloud-cce-log-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query CCE Pod logs on Huawei Cloud?▼

Use the huawei_get_pod_stdout_logs action with region, cluster_id, namespace, and pod_name to retrieve current stdout/stderr through kubectl or the kubectl-cce plugin. Set previous=true to read a terminated container instance and tail_lines to limit output.

How to analyze application logs stored in Huawei Cloud LTS?▼

Use huawei_query_application_logs or huawei_analyze_application_logs with region, cluster_id, and either a collection-rule selector or namespace plus app_name. The analyzer reports abnormal ratio, incident windows, top error patterns, and HTTP 5xx distribution.

How can I find who deleted a Pod in a CCE cluster?▼

Query CCE audit logs with huawei_query_cce_audit_logs using audit_type=pod_delete, or build a change timeline with huawei_analyze_cce_audit_timeline. Audit events include the actor when retained; kube-apiserver logs provide supplemental HTTP evidence only.

Does this skill require the kubectl cce plugin?▼

Pod stdout and CCE LogConfig tools require kubectl, falling back to the kubectl-cce plugin when no external endpoint is reachable. The companion huawei-cloud-kubectl-cce-installer skill handles plugin installation and credential configuration.

Can it create or delete log collection rules automatically?▼

Creation and deletion of CCE LogConfig or LTS Access Config rules always run a preview first and only execute after the user re-calls with confirm=true. The tools never create or select LTS log groups or streams on the user's behalf.

Why does a control-plane log query return an error about a disabled switch?▼

Audit, kube-apiserver, and kube-scheduler tools check the matching CCE Log Center switch via CCE ShowClusterConfig before querying. If the switch is off, the tool returns an error and never enables control-plane logging automatically.