exploring-endpoint-execution-logs
यह क्या करती है
यह स्किल हर एंडपॉइंट रन के लिए लिखी गई लॉग प्रविष्टि पढ़ती है और समझाती है कि क्या हुआ, जैसे कोई त्रुटि या खाली नतीजा। यह उन लोगों के लिए है जिन्हें जानना है कि कोई एंडपॉइंट ऐसा व्यवहार क्यों कर रहा है।
कब इस्तेमाल करें
- ✓जब कोई एंडपॉइंट विफल हो रहा हो और आप उसके रनों से त्रुटि संदेश चाहें।
- ✓जब कोई एंडपॉइंट खाली नतीजा लौटाए और आप कारण जानना चाहें।
- ✓जब आप किसी एंडपॉइंट के पिछले कुछ रन जाँचना चाहें, जिसमें यह भी शामिल है कि उन्होंने कैश इस्तेमाल किया या नहीं।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/exploring-endpoint-execution-logs/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे ग्राहक एंडपॉइंट के लॉग दिखाइए और बताइए कि पिछले तीन रन क्यों विफल हुए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
हर रन एक लॉग प्रविष्टि लिखता है, जिसमें उसका नतीजा, अवधि और पंक्तियों की संख्या होती है। स्किल उन प्रविष्टियों में उस खास एंडपॉइंट को खोजती है और सारांश देती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Exploring endpoint execution logs
Every endpoint run emits one execution log entry to PostHog's log_entries store. This skill
reads those entries for a specific endpoint to answer "what happened when it ran?". It is the
log-level counterpart to diagnosing-endpoint-performance (which reasons about cache/materialisation
strategy from config and query_log).
When to use this skill
- "Why is my endpoint failing / erroring?"
- "Show me the logs / recent runs for endpoint X"
- "Did the last run hit cache? How many rows did it return?"
- "What happened the last time endpoint Y ran?"
If the question is "this endpoint is slow, what should I change?", use
diagnosing-endpoint-performance. If it's project-wide ("what can I clean up?"), use
auditing-endpoints.
What an execution log entry looks like
Each run produces exactly one entry. The level is INFO on success and ERROR on failure, and the
message carries the extra data as searchable key=value tokens:
Endpoint executed · path=materialized cache=hit duration_ms=142 rows=1024 version=3
Endpoint execution failed · path=inline error=ResolutionError version=3
Token meanings:
| Token | Values | Meaning |
|---|---|---|
path |
materialized / inline / ducklake / ducklake_fallback |
Which execution path ran |
cache |
hit / miss |
Whether the query result cache was used (omitted for ducklake) |
duration_ms |
integer | Wall-clock execution time |
rows |
integer | Number of result rows returned |
version |
integer | Which endpoint version ran |
error |
e.g. ResolutionError, HogVMException |
Error class / HogQL code name (failures only) |
Each run gets a distinct instance_id, so logs group one-per-execution in the viewer.
Available tools
| Tool | Purpose |
|---|---|
endpoint-logs |
Primary. Execution log entries for one endpoint by name. Filter by level, search, time range, instance_id; limit up to 500. |
endpoint-get |
Endpoint config for context (current version, materialisation, query kind) |
execute-sql |
Fallback / aggregation directly against log_entries (log_source='endpoints') |
Filtering
endpoint-logs exposes the standard log filters:
- level — comma-separated, e.g.
ERRORto see only failed runs, orINFO,ERRORfor all. - search — case-insensitive substring over the message. Because the extra data is in
key=valuetokens, you can searchcache=miss,path=inline,error=ResolutionError, or a specificversion=3. - after / before — ISO timestamps to bound the time range.
- instance_id — pin a single execution.
- limit — 1–500 (default 50).
Workflow
Identify the endpoint by name. If given a URL, parse it from
/api/projects/{team_id}/endpoints/{name}/run.Start broad:
endpoint-logsfor the endpoint with a recent time range. Skim levels and tokens.Narrow to the symptom:
- Failures →
level=ERROR; read theerror=token andpath=to see where it broke. - Cache concerns →
search=cache=missto see how often runs miss cache. - Wrong results → compare
rows=across runs, andversion=to spot a regression after a version bump.
- Failures →
For counts/trends across many runs (e.g. error rate over a week), drop to
execute-sqlagainstlog_entries:SELECT toDate(timestamp) AS day, upper(level) AS level, count() AS runs FROM log_entries WHERE log_source = 'endpoints' AND log_sou
अक्सर पूछे जाने वाले सवाल
क्या हर रन एक लॉग बनाता है?
हाँ। हर एंडपॉइंट रन एक लॉग प्रविष्टि जोड़ता है, सफलता पर info और विफलता पर error चिह्नित।
क्या मैं धीमे रन देख सकता हूँ?
हाँ। हर लॉग प्रविष्टि में अवधि दर्ज होती है, इसलिए धीमे रन खोजे और तुलना किए जा सकते हैं।
यह प्रदर्शन स्किल से कैसे अलग है?
यह स्किल देखती है कि हर रन में क्या हुआ, जबकि प्रदर्शन स्किल कैशिंग और कॉन्फ़िगरेशन पर विचार करती है।
जानकारी
लेखक का मूल विवरण
Explore and diagnose a PostHog endpoint's execution logs — error messages, failed runs, cache misses, slow runs, or unexpected row counts during endpoint invocations. Use when the user says "my endpoint is failing", "show me the logs for endpoint X", "what error did endpoint Y produce", "why did endpoint Z return no rows", "is this endpoint hitting cache", or "check the last N runs". Focused on a single named endpoint's runtime log entries, not project-wide auditing or query performance profiling.
repo: PostHog/posthog
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #6862
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।