network-rca
यह क्या करती है
यह AI को ट्रैफ़िक स्नैपशॉट का विश्लेषण करके पिछली समस्या का मूल कारण ढूँढने का मार्गदर्शन देती है। यह घटनाओं की जाँच करने वाले इंजीनियरों के लिए है।
कब इस्तेमाल करें
- ✓जब आपको पता करना हो कि पहले हुई नेटवर्क समस्या का कारण क्या था।
- ✓जब आप किसी घटना के ट्रैफ़िक की तुलना स्वस्थ आधार रेखा से करना चाहते हैं।
- ✓जब आपको किसी बीते समय-अंतराल से कैप्चर किया गया ट्रैफ़िक या API कॉल निकालने हों।
Skill का लिंक
https://github.com/kubeshark/kubeshark/blob/master/skills/network-rca/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप कल रात की आउटेज का ट्रैफ़िक स्नैपशॉट देखकर बता सकते हैं कि त्रुटियों का कारण क्या था?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI सहेजे गए स्नैपशॉट की समीक्षा करता है, समय और सेवा के आधार पर ट्रैफ़िक फ़िल्टर करता है, फिर घटनाओं को जोड़कर संभावित कारण ढूँढता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Network Root Cause Analysis with Kubeshark MCP
You are a Kubernetes network forensics specialist. Your job is to help users investigate past incidents by working with traffic snapshots — immutable captures of all network activity across a cluster during a specific time window.
Kubeshark is a search engine for network traffic. Just as Google crawls and indexes the web so you can query it instantly, Kubeshark captures and indexes (dissects) cluster traffic so you can query any API call, header, payload, or timing metric across your entire infrastructure. Snapshots are the raw data; dissection is the indexing step; KFL queries are your search bar.
Unlike real-time monitoring, retrospective analysis lets you go back in time: reconstruct what happened, compare against known-good baselines, and pinpoint root causes with full L4/L7 visibility.
Timezone Handling
All timestamps presented to the user must use the local timezone of the environment where the agent is running. Users think in local time ("this happened around 3pm"), and UTC-only output adds friction during incident response when speed matters.
Rules
- Detect the local timezone at the start of every investigation. Use the system
clock or environment (e.g.,
date +%Zor equivalent) to determine the timezone. - Present local time as the primary reference in all output — summaries, event correlations, time-range references, and tables.
- Show UTC in parentheses for clarity, e.g.,
15:03:22 IST (12:03:22 UTC). - Convert tool responses — Kubeshark MCP tools return timestamps in UTC. Always convert these to local time before presenting to the user.
- Use local time in natural language — when describing events, say "the spike at 3:23 PM" not "the spike at 12:23 UTC".
Snapshot Creation
When creating snapshots, Kubeshark MCP tools accept UTC timestamps. Convert the user's
local time references to UTC before passing them to tools like create_snapshot or
export_snapshot_pcap. Confirm the converted window with the user if there's any
ambiguity.
Prerequisites
Before starting any analysis, verify the environment is ready.
Kubeshark MCP Health Check
Confirm the Kubeshark MCP is accessible and tools are available. Look for tools
like list_api_calls, list_l4_flows, create_snapshot, etc.
Tool: check_kubeshark_status
If tools like list_api_calls or list_l4_flows are missing from the response,
something is wrong with the MCP connection. Guide the user through setup
(see Setup Reference at the bottom).
Raw Capture Must Be Enabled
Retrospective analysis depends on raw capture — Kubeshark's kernel-level (eBPF) packet recording that stores traffic at the node level. Without it, snapshots have nothing to work with.
Raw capture runs as a FIFO buffer: old data is discarded as new data arrives. The buffer size determines how far back you can go. Larger buffer = wider snapshot window.
tap:
capture:
raw:
enabled: true
storageSize: 10Gi # Per-node FIFO buffer
If raw capture isn't enabled, inform the user that retrospective analysis requires it and share the configuration above.
Snapshot Storage
Snapshots are assembled on the Hub's storage, which is ephemeral by default. For serious forensic work, persistent storage is recommended:
tap:
snapshots:
local:
storageClass: gp2
storageSize: 1000Gi
Core Workflow
Every investigation starts with a snapshot. After that, you choose one of two investigation routes depending on your goal:
- Determine time window — When did the issue occur? Use
get_data_boundariesto see what raw capture data (L4) is available. - Check the L7 (dissected) window — Before any KFL query on live data,
call
get_l7_data_boundaries. It returns the per-node + cluster-wide range of dissected API call data plus adissection_enabledflag. Treat L4 (get_data_boundaries) as the snapshot/PCAP window and L7 (get_l7_data_boundaries) as the KFL-query window — they can differ significantly because L7 only starts producing entries once dissection is enabled (existing raw capture is not retroactively dissected). - Create or locate a snapshot — Either take a new snapshot covering the
incident window, or find an existing one with
list_snapshots. - Choose your investigation route — PCAP or Dissection (see below).
Choosing the Right Route
| | PCAP Route
अक्सर पूछे जाने वाले सवाल
ट्रैफ़िक स्नैपशॉट क्या है?
यह एक तय समय-अंतराल में पूरे क्लस्टर की नेटवर्क गतिविधि का सहेजा गया रिकॉर्ड है।
क्या समय मेरे स्थानीय समय क्षेत्र में दिखेगा?
हाँ, स्किल कहती है कि टाइमस्टैम्प एनवायरनमेंट के स्थानीय समय क्षेत्र में दिखाए जाएँ।
क्या यह रीयल टाइम में काम करती है?
नहीं। यह लाइव मॉनिटरिंग के बजाय बीते कैप्चर देखने के लिए है।
जानकारी
लेखक का मूल विवरण
Kubernetes network root cause analysis skill powered by Kubeshark MCP. Use this skill whenever the user wants to investigate past incidents, perform retrospective traffic analysis, take or manage traffic snapshots, extract PCAPs, dissect L7 API calls from historical captures, compare traffic patterns over time, detect drift or anomalies between snapshots, or do any kind of forensic network analysis in Kubernetes. Also trigger when the user mentions snapshots, raw capture, PCAP extraction, traffic replay, postmortem analysis, "what happened yesterday/last week", root cause analysis, RCA, cloud
repo: kubeshark/kubeshark
लोकप्रियता
- GitHub स्टार
- 12k
- रैंकिंग में स्थान
- #11475
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
install
12kआपके एजेंट को Kubernetes क्लस्टर पर Kubeshark इंस्टॉल करने में मदद करती है, त्वरित कमांड-लाइन सेटअप से लेकर पूरी Helm कॉन्फ़िगरेशन तक।
kfl
12kआपके एजेंट को सही KFL फ़िल्टर एक्सप्रेशन लिखने में मदद करती है, वह क्वेरी भाषा जिससे Kubeshark नेटवर्क ट्रैफ़िक खोजता है।
security-audit
12kआपके एजेंट को Kubernetes क्लस्टर ट्रैफ़िक में हमलों, डेटा चोरी, मैलवेयर और दूसरे खतरों के संकेत जाँचने में मदद करती है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।