मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)41k · #6889

investigating-logs

यह क्या करती है

यह स्किल आपके PostHog लॉग पढ़ती है, ताकि बताए कि कोई सेवा स्वस्थ है या नहीं, त्रुटि उछाल का कारण क्या है, या कोई लॉग स्ट्रीम क्या कह रही है। यह उन डेवलपर्स और ऑन-कॉल स्टाफ़ के लिए है जिन्हें जल्दी जवाब चाहिए।

कब इस्तेमाल करें

  • ✓जब आप किसी बदलाव के बाद जाँचना चाहें कि सेवा या डिप्लॉयमेंट ठीक चल रहा है।
  • ✓जब त्रुटियाँ बढ़ गई हों और आप जानना चाहें कि क्या बदला।
  • ✓जब किसी अलर्ट या उपयोगकर्ता की रिपोर्ट की गई विफलता के लिए आपको लॉग का प्रमाण चाहिए।

Skill का लिंक

https://github.com/PostHog/posthog/blob/master/products/logs/skills/investigating-logs/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PostHog/posthog/blob/master/products/logs/skills/investigating-logs/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या मेरे पिछले डिप्लॉय ने कुछ तोड़ा? लॉग जाँचिए और बताइए क्या बदला।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह पहले लॉग को दोहराए जाने वाले पैटर्न में समूहित करती है और उनकी तुलना पहले के समय से करती है, ताकि दिखे कि क्या अलग है। केवल अंत में यह कच्ची लॉग पंक्तियाँ पढ़ती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Investigating logs

Investigation is a narrowing problem: summarize before you read. One posthog:logs-patterns call compresses millions of lines into at most 200 templates, and one posthog:logs-patterns-diff call answers "what is different about now vs. before" directly. Raw rows (posthog:query-logs) are the last step of an investigation, never the first.

When to use this skill

  • "Check the logs" / "is service X healthy?" / "did my deploy (or model bump, config change, migration) break anything?"
  • "Why are errors up?" / "explain this spike" / incident triage — "what changed?"
  • "What is this service logging?" — orienting in an unfamiliar or noisy stream.
  • Finding the log evidence for a failure reported elsewhere (an alert, an error-tracking issue, a user complaint).

When not to use this skill

  • Creating or tuning log alerts — that's authoring-log-alerts.
  • Analytics over product events, persons, or insights — that's querying-posthog-data.
  • HogQL exposes a logs table via posthog:execute-sql, but do not investigate through it: hand-written SQL over logs routinely hits read-byte caps and re-derives what the tools below do in one cheap call. Reserve SQL for the rare case of joining log-derived facts with non-log data.

Tools

Tool Job
posthog:logs-services-create Top-25 services with log_count, error_count, error_rate, sparkline. Orientation.
posthog:logs-patterns Mine one window's message templates, ordered by frequency. "What is this stream saying?"
posthog:logs-patterns-diff Diff templates between two windows: new / rate-shifted / gone. "What changed?"
posthog:logs-count / posthog:logs-count-ranges Scalar and time-bucketed counts for a filter. Localize volume before pulling rows.
posthog:logs-sparkline-query Volume over time broken down by severity or service (the one bucketed view with a breakdown).
posthog:logs-facet-values-create Distribution of severity/service (or a resource attribute) under a filter.
posthog:logs-attributes-list / posthog:logs-attribute-values-list Discover attribute keys and values before building filters.
posthog:query-logs Raw rows. Endpoint of every drill-down, entry point of none.

Each tool's own description documents its parameters and response shape — read it before calling.

Pick the workflow by question shape

"Is it healthy?" — post-deploy / post-change verification

The user changed something (deploy, model bump, config, migration) and wants to know the logs still look right.

  1. Pin down the change time and the affected service(s). Ask if the user hasn't said; the diff is meaningless without a boundary.
  2. Orient with posthog:logs-services-create: is the service still logging at all, and what is its error_rate now? A service that went silent fails verification just as hard as one that started erroring.
  3. posthog:logs-patterns-diff with query.dateRange from the change time to now and baselineDateRange set to a comparable window just before the change, scoped to serviceNames. New error/fatal templates right after a change are the classic regression signature; large rate_ratio shifts on existing error templates are the second thing to check.
  4. Check volume continuity with posthog:logs-count-ranges spanning before and after the boundary: a rate discontinuity (crash loop, restart storm, silence) shows up here even when message content looks unchanged.
  5. Drill only the suspects: pivot each suspicious pattern to raw lines via its match_regex with posthog:query-logs.

A pass verdict needs all three: no new error templates, no large error rate_ratio shifts, and continuous volume. Say which windows you compared — "healthy" is o

अक्सर पूछे जाने वाले सवाल

कच्ची लॉग पंक्तियाँ पहले क्यों नहीं पढ़तीं?

पढ़ने के लिए बहुत सारी पंक्तियाँ होती हैं, इसलिए सारांश पहले महत्वपूर्ण पैटर्न दिखाता है।

क्या मुझे लॉग के लिए SQL लिखना चाहिए?

आम तौर पर नहीं। स्किल अपने सारांश टूल की सलाह देती है, क्योंकि लॉग पर हाथ से लिखे SQL अक्सर पढ़ने की सीमा तक पहुँच जाते हैं।

क्या यह अलर्ट भी बना सकती है?

नहीं। लॉग अलर्ट बनाना या ट्यून करना एक अलग स्किल संभालती है।

जानकारी

लेखक का मूल विवरण

Investigate logs in a PostHog project: verify a service or deployment is healthy, explain an error spike, triage an incident, or understand what a log stream is saying. Use when the user asks to "check the logs", asks whether a service, deploy, release, or change is working or broke anything, asks why errors are up or what changed, or wants the root cause of failures visible in logs. Routes the logs MCP tools (services overview, pattern mining, before/after pattern diffing, bucketed counts, facets, raw rows) so investigations start from summaries instead of raw rows or hand-written SQL over th

repo: PostHog/posthog

लोकप्रियता

GitHub स्टार
41k
रैंकिंग में स्थान
#6889
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

depot-ci

41k

यह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-container-builds

41k

यह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-github-runners

41k

यह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

editing-agents-md

41k

यह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।

AI और एजेंटएजेंट

मिलती-जुलती skills