- Home
- Skills
- Testing & Debugging
- Log AI Compressor Forensics
Log AI Compressor Forensics
by hu-chenyu
Manual log analysis is slow, prone to oversight, and lacks an audit trail.
Free
Log AI Compressor Forensics
Example session with this skill installed
Triage the local file examples/app.log. Tell me whether there is a verified root cause for the P0 errors, and do not paste the whole log.
- Read your context and instructions
- Compiled the log ai compressor
I analyzed examples/app.log and verified every citation against the source.
Scope
- File:
examples/app.log - Lines: 24 (8 error lines)
- Time range: 2024-03-15 08:00:00 to 08:00:25
- Fingerprint:
48e5781aafc4
Verdict
VERIFIED — 4 citations checked, 4 matched, 0 mismatched. The findings below are tied to exact source lines and digests.
Findings
| Priority | Level | Count | Summary | Lines | Evidence ID | Digest (12) | Confidence |
|---|---|---|---|---|---|---|---|
| P0 | ERROR | 3 | authorization failed: connection refused to db-primary:5432 | 4-13 | c3801f905159 | bc5b93cec7cd | Root cause |
| P0 | ERROR | 3 | request 8812 failed: upstream unavailable | 6-11 | 0cf6bfcc84ba | 21d12907c311 | Impact / candidate |
| P0 | ERROR | 1 | java.net.ConnectException: Connection refused | 18-22 | de02c403264a | 68af24f230ba | Root cause |
| P0 | ERROR | 1 | stock check timeout after 3000ms item=SKU-7781 | 23 | 7ef75691d5d3 | a72b9f38845a | Symptom |
The report identifies two causal chains: the auth cluster is marked as a causal-chain source (one downstream error), and the Java connection-refused cluster has a direct Caused-by link. The upstream and stock-timeout clusters are presented as impact/symptom, not as root causes.
What is still missing
- The file has only 24 lines; earlier history before line 1 is not available.
- Database and network metrics are outside the log, so the report cannot prove why the connection was refused.
Next steps
- Check connectivity to
db-primary:5432from the application host. - Capture a pre-fix and post-fix log, then run
compareto confirm the incident cluster disappears rather than merely changing wording.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual log analysis is slow, prone to oversight, and lacks an audit trail. When production breaks, you need more than a summary. You need proof. This skill turns overwhelming log files into compact, verifiable evidence packs.
3.3.0 results
14-dataset holdout macro average: PA 90.45 / GA 95.20. Five fixed splits: 91.75 / 95.09. Dataset×split bootstrap 95% CI lower bound: 90.30 / 94.04.
Five-arm 14-dataset macro average (Content): this tool 90.45 / 95.20; Tipping 74.16 / 76.83; Brain 69.24 / 85.68; Spell 31.92 / 68.57; IPLoM 31.90 / 83.62; Logram 28.46 / 32.81; Drain3 60.55 / 81.06.
Boundary: 3.3.0 is an offline non-LLM global #1 candidate on 14-dataset macro average, not a per-dataset #1. Three datasets lose one or both metrics: HealthApp to Tipping 92.74 / 98.03; OpenStack to Brain 97.99 / 100.00; Spark to Brain 94.12 / 95.90.
Gate: 2,481 collected / 2,478 passed / 3 skipped / 0 failed; 93.90% coverage; ruff clean; BGL 2k three runs 0.068 / 0.070 / 0.072 s. There is still no third-party full reproduction.
Reproduce in 3 minutes
Open the public Issue and run the exact commands there. Success and failure both count; no positive review is required.
Open #IKWWD3 reproduction entry
Install:
python -m pip install "log-ai-compressor==3.3.0"
What it does
- Evidence-backed triage transforms raw text logs into structured reports where every finding is linked to specific line ranges.
- Integrity verification uses SHA-256 digests to re-read source files and confirm that reported evidence has not been tampered with or rotated.
- Root cause isolation identifies causal chains, distinguishing between symptoms, impacts, and actual triggers.
- Verifiable comparisons analyzes up to five log files simultaneously to track incident patterns or verify fixes across deployments.
- PII protection automatically redacts emails, phone numbers, IDs, and keys before presenting findings to ensure data privacy.
How it works
- Analyze the target log file using the run command to generate a machine-readable JSON report with identified error clusters.
- Verify the report integrity against the source file to produce a verdict of VERIFIED, TAMPERED, or UNVERIFIABLE.
- Extract specific evidence blocks for high-priority findings to view the exact lines and digests without loading the entire log.
- Compare multiple logs to map trace IDs or message templates across different time ranges or environments.
Frameworks & tools
The skill interfaces with the log-ai-compressor CLI (Python-based). It supports local text logs, JSON Lines, logfmt, and piped input from tools like kubectl.
Why this beats prompting it yourself
Standard prompts often hallucinate line numbers or mistake correlation for causation. This skill enforces a hard link between conclusions and file digests, ensuring that every claim can be audited and re-read from the source disk.
Use cases
- Triage noisy production logs to separate recurring background noise from critical P0 failures.
- Verify if a log report is still trustworthy after a file has been modified or rotated.
- Perform a "before and after" analysis to prove a code fix successfully eliminated a specific error trace.
- Generate redacted evidence packs for sharing with external teams without exposing sensitive user data.
Known limitations
Supports text-based logs only, not binary formats or metrics. Comparisons are limited to 5 files maximum. Trace matching in comparisons requires structured log formats like JSON Lines or logfmt.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 13 days ago
- Free with an Agensi account
- Software
Python
Permissions
What's inside
Creator
hu-chenyu
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.