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 новых скиллов в неделю. 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
- Лицензия
- —
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
depot-ci
41kПомогает агенту настроить и запускать workflow в Depot CI, альтернативе GitHub Actions, включая перенос существующих workflow и чтение логов запусков.
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Помогает агенту открыть и запустить приложение на временной облачной машине, а затем показать его вид на боковой панели чата.