Log AI Compressor Forensics

    by hu-chenyu

    1

    Manual log analysis is slow, prone to oversight, and lacks an audit trail.

    Free

    Security scanned

    Works with the AI Agents you already use

    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

    PriorityLevelCountSummaryLinesEvidence IDDigest (12)Confidence
    P0ERROR3authorization failed: connection refused to db-primary:54324-13c3801f905159bc5b93cec7cdRoot cause
    P0ERROR3request 8812 failed: upstream unavailable6-110cf6bfcc84ba21d12907c311Impact / candidate
    P0ERROR1java.net.ConnectException: Connection refused18-22de02c403264a68af24f230baRoot cause
    P0ERROR1stock check timeout after 3000ms item=SKU-7781237ef75691d5d3a72b9f38845aSymptom

    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

    1. Check connectivity to db-primary:5432 from the application host.
    2. Capture a pre-fix and post-fix log, then run compare to 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

    1. Analyze the target log file using the run command to generate a machine-readable JSON report with identified error clusters.
    2. Verify the report integrity against the source file to produce a verdict of VERIFIED, TAMPERED, or UNVERIFIABLE.
    3. Extract specific evidence blocks for high-priority findings to view the exact lines and digests without loading the entire log.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Listed13 days ago
    Updated2 days ago

    What's inside

    Creator

    H

    hu-chenyu

    Frequently Asked Questions

    The skill generates a SHA-256 digest for every identified evidence block; you can run the built-in verification command to re-scan the source file and ensure the log hasn't been rotated or tampered with since the analysis.

    This skill is designed for any AI agent with filesystem access and supports the `log-ai-compressor` CLI, making it compatible with local development environments and CI/CD pipelines.

    While the skill handles standard text logs, complex trace matching across multiple files works best with structured formats like JSON Lines or logfmt.

    The skill includes the specialized agent instructions, the `log-ai-compressor` Python-based CLI tool, and a set of pre-configured commands for automated triage and redaction.

    Yes, the skill features a built-in PII protection layer that automatically redacts sensitive data like emails, keys, and IDs before any findings are presented or stored in the report.

    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.

    Free