investigating-logs
Skill by PostHog
Investigates logs in a PostHog project to check service health, explain error spikes, and triage incidents. Built for users who ask whether a deploy broke something or why errors are up.
Install investigating-logs
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/logs/skills/investigating-logs ~/.claude/skills/investigating-logsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/products/logs/skills/investigating-logs ~/.gemini/antigravity-cli/skills/investigating-logsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The investigating-logs skill, published by PostHog, helps an AI assistant investigate logs in a PostHog project. It covers checking whether a service or deployment is healthy, explaining an error spike, triaging an incident, and understanding what a log stream is saying. The skill routes the logs MCP tools so investigations start from summaries, such as the services overview, pattern mining, and before and after pattern diffs, instead of raw rows or hand-written SQL.
Each investigation narrows down step by step. The assistant compares time windows, such as a period after a change against a comparable period before it, and reads raw log lines only for suspects it has already found. Verdicts state which windows were compared. The skill is aimed at users who ask whether a deploy, release, or change broke anything, or why errors are up. It points to related skills for log alerts and APM traces.
Written from the project's SKILL.md and checked against it.
What it can do
- posthog:logs-services-createLists top services with log count, error count, error rate, and a sparkline for orientation.
- posthog:logs-patternsMines one window's message templates ordered by frequency to show what a stream is saying.
- posthog:logs-patterns-diffCompares message templates between two windows as new, rate-shifted, or gone entries.
- posthog:logs-count-rangesReturns time-bucketed counts for a filter to localize volume changes before pulling rows.
- posthog:logs-sparkline-queryShows volume over time broken down by severity or service.
- posthog:logs-facet-values-createShows the distribution of severity, service, or a resource attribute under a filter.
- posthog:logs-attributes-listDiscovers attribute keys before building log filters.
- posthog:query-logsPulls raw log rows as the final step of a drill-down into confirmed suspects.
What you need
- A PostHog project with logs
- Access to the PostHog logs MCP tools
Try asking
- Did my deploy at 14:00 break anything in the checkout service?
- Why are errors up in the payments service in the last hour?
- What is the api service logging right now? Summarize the patterns.
Good to know
- Pattern counts are sampled estimates, so rare templates can be missed.
- posthog:query-logs requires an explicit query.dateRange.
- Hand-written SQL over the logs table can hit read-byte caps, so the skill avoids it.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: products/logs/skills/investigating-logs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to investigating-logs
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
investigating-logs: common questions
How does the skill investigate a spike in errors?
It localizes the spike with bucketed counts, then runs one pattern diff between the spike window and the window just before it. The top new and rate-shifted templates explain the spike.
Can it confirm a deploy is healthy?
A pass verdict needs no new error templates, no large error rate shifts, and continuous log volume across the change time. The verdict names the windows compared.
Does it write or change alerts?
No. Creating or tuning log alerts is handled by the separate authoring-log-alerts skill.
How do I install investigating-logs?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is investigating-logs free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is investigating-logs safe to use?
It scores 85 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to investigating-logs?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
