Loading...
Loading...
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.
npx skill4agent add posthog/skills exploring-endpoint-execution-logslog_entriesdiagnosing-endpoint-performancequery_logdiagnosing-endpoint-performanceauditing-endpointsINFOERRORkey=valueEndpoint executed · path=materialized cache=hit duration_ms=142 rows=1024 version=3
Endpoint execution failed · path=inline error=ResolutionError version=3| Token | Values | Meaning |
|---|---|---|
| | Which execution path ran |
| | Whether the query result cache was used (omitted for ducklake) |
| integer | Wall-clock execution time |
| integer | Number of result rows returned |
| integer | Which endpoint version ran |
| e.g. | Error class / HogQL code name (failures only) |
instance_id| Tool | Purpose |
|---|---|
| Primary. Execution log entries for one endpoint by name. Filter by level, search, time range, instance_id; |
| Endpoint config for context (current version, materialisation, query kind) |
| Fallback / aggregation directly against |
endpoint-logsERRORINFO,ERRORkey=valuecache=misspath=inlineerror=ResolutionErrorversion=3/api/projects/{team_id}/endpoints/{name}/runendpoint-logslevel=ERRORerror=path=search=cache=missrows=version=execute-sqllog_entriesSELECT toDate(timestamp) AS day, upper(level) AS level, count() AS runs
FROM log_entries
WHERE log_source = 'endpoints' AND log_source_id = '<endpoint_uuid>'
GROUP BY day, level ORDER BY day DESCendpoint-getlog_source_iddiagnosing-endpoint-performanceUser: "weekly_signups started erroring this morning"
Agent steps:
- endpoint-logs weekly_signups, level=ERROR, after=<this morning>
→ several "Endpoint execution failed · path=inline error=ResolutionError version=5"
- endpoint-get weekly_signups → current version is v5 (bumped today)
- endpoint-logs weekly_signups, level=INFO, before=<this morning>
→ prior runs: "path=inline cache=hit ... version=4" succeeded
- "v5 (created this morning) is failing with a ResolutionError on the inline path — it can't
resolve a table or field reference. v4 ran fine. This looks like a bad query in the new
version. Want me to pull the v5 query (endpoint-versions) so we can fix it, or roll back to v4?"log_source_idexecute-sqlendpoint-getlog_entriesendpoint-logsdiagnosing-endpoint-performancequery_log