exploring-endpoint-execution-logs
ما الذي تفعله
تقرأ هذه المهارة سجل التشغيل الذي يُكتب لكل تنفيذ لنقطة النهاية، وتشرح ما حدث، مثل خطأ أو نتيجة فارغة. وهي مناسبة لمن يحتاج إلى معرفة سبب تصرف نقطة نهاية بطريقة معينة.
متى تستخدمها
- ✓عندما تفشل نقطة نهاية وتريد رسالة الخطأ من تشغيلاتها.
- ✓عندما تعيد نقطة نهاية صفوفاً فارغة وتريد معرفة السبب.
- ✓عندما تريد فحص آخر عدد من تشغيلات نقطة النهاية، بما فيها هل استخدمت الذاكرة المؤقتة.
رابط المهارة
https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/exploring-endpoint-execution-logs/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“اعرض لي سجلات نقطة نهاية العملاء لدي، وأخبرني لماذا فشلت التشغيلات الثلاثة الأخيرة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يكتب كل تشغيل سجلاً واحداً يتضمن نتيجته ومدته وعدد صفوفه. تبحث المهارة في هذه السجلات عن نقطة النهاية المحددة وتلخصها.
المحتوى التقني (ملف 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
الأسئلة الشائعة
هل يُنشئ كل تشغيل سجلاً؟
نعم. يضيف كل تشغيل لنقطة النهاية سجلاً واحداً، يُوسم بـ«معلومات» عند النجاح و«خطأ» عند الفشل.
هل أستطيع رؤية التشغيلات البطيئة؟
نعم. تُسجَّل المدة في كل سجل، فيمكن إيجاد التشغيلات البطيئة ومقارنتها.
ما الفرق بينها وبين مهارة الأداء؟
تقرأ هذه المهارة ما حدث في كل تشغيل، بينما تستنتج مهارة الأداء بشأن الذاكرة المؤقتة والإعداد.
التفاصيل
الوصف الأصلي من المؤلف
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
التعليقات
- …
المزيد من المهارات من هذا المستودع
depot-ci
41kيساعد وكيلك على إعداد سير عمل Depot CI وتشغيله، وهو بديل لـ GitHub Actions، بما في ذلك نقل سير العمل الحالي وقراءة سجلات التشغيل.
depot-container-builds
41kيساعد وكيلك على بناء صور Docker على بُنّاة Depot البعيدين، بما في ذلك الصور متعددة المنصات والدفع إلى السجلات وإصلاح أخطاء البناء.
depot-github-runners
41kيساعد وكيلك على نقل مهام GitHub Actions إلى مشغّلات Depot المُدارة، واختيار أحجامها وتسمياتها، وإصلاح مشاكل إعدادها.
editing-agents-md
41kيساعد وكيلك على تحديد ما إذا كانت القاعدة تنتمي إلى ملف AGENTS.md أو CLAUDE.md، وكتابتها بطريقة تُتَّبع دون تضخيم الملف.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.