본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)41k · #6862

exploring-endpoint-execution-logs

하는 일

이 스킬은 엔드포인트 실행마다 남는 로그 항목을 읽고, 오류나 빈 결과처럼 무슨 일이 있었는지 설명합니다. 엔드포인트가 특정 방식으로 동작한 이유를 알아야 하는 사람을 위한 것입니다.

사용하는 경우

  • ✓엔드포인트가 실패하고 있어서 실행의 오류 메시지를 보고 싶을 때.
  • ✓엔드포인트가 행을 하나도 반환하지 않아서 이유를 알고 싶을 때.
  • ✓엔드포인트의 최근 실행을 캐시를 썼는지 포함해서 확인하고 싶을 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/exploring-endpoint-execution-logs/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/exploring-endpoint-execution-logs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 고객 엔드포인트의 로그를 보여 주고, 마지막 세 번의 실행이 왜 실패했는지 알려 주세요.”

매주 새 스킬 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. ERROR to see only failed runs, or INFO,ERROR for all.
  • search — case-insensitive substring over the message. Because the extra data is in key=value tokens, you can search cache=miss, path=inline, error=ResolutionError, or a specific version=3.
  • after / before — ISO timestamps to bound the time range.
  • instance_id — pin a single execution.
  • limit — 1–500 (default 50).

Workflow

  1. Identify the endpoint by name. If given a URL, parse it from /api/projects/{team_id}/endpoints/{name}/run.

  2. Start broad: endpoint-logs for the endpoint with a recent time range. Skim levels and tokens.

  3. Narrow to the symptom:

    • Failures → level=ERROR; read the error= token and path= to see where it broke.
    • Cache concerns → search=cache=miss to see how often runs miss cache.
    • Wrong results → compare rows= across runs, and version= to spot a regression after a version bump.
  4. For counts/trends across many runs (e.g. error rate over a week), drop to execute-sql against log_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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬