log-analyzer

Analyze log files to detect error patterns and generate structured anomaly reports.

15|3|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/moonlight-lupin/agent-skills --skill log-analyzer-moonlight-lupin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: log-analyzer
Source: https://github.com/moonlight-lupin/agent-skills/tree/main/agent-ops/log-analyzer
Command: npx skills add https://github.com/moonlight-lupin/agent-skills --skill log-analyzer-moonlight-lupin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a powerful way to quickly analyze log files, detecting patterns of errors, rate limit hits, timeouts, tool failures, and component-level error counts. It generates a structured anomaly report for easy debugging or monitoring.

Core Features & Use Cases

  • Error Detection: Identifies and reports errors in log files.
  • Pattern Recognition: Finds repeating patterns of errors and rate limit hits.
  • Anomaly Reporting: Produces a structured report of detected anomalies.
  • Use Case: Use this Skill to analyze the logs of a web server to identify common issues such as 429 errors, timeouts, and repeated error messages, helping to quickly diagnose and address problems.

Quick Start

Run the following command in the skill directory to scan a log file and generate a report:

python scripts/analyze_logs.py scan --log-file agent.log --since 24h

Frequently Asked Questions about log-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect error patterns and anomalies in log files?

To detect error patterns in log files, you can scan standard or unstructured text logs to group errors by component and tool, identifying rate limit hits, timeouts, and repeating error patterns. This produces a structured anomaly report for debugging.

Can I analyze unstructured log formats without installing external dependencies?

Yes, you can analyze unstructured log formats using only Python's standard library, requiring no external dependencies. The script runs on any system with a text log and parses standard and unstructured formats to detect tool failures.

What is the best way to generate a structured anomaly report from web server logs?

The best way to generate a structured anomaly report from web server logs is to run a scan command that identifies 429 errors, timeouts, and repeated error messages, grouping them by component to quickly diagnose and address problems.

How do I monitor component-level error counts and tool failures over a specific time period?

You can monitor component-level error counts and tool failures over a specific time period by running a scan command with a time flag, such as 24h, to filter log entries and produce a structured report of anomalies detected within that window.

Does log analysis for debugging sessions work with cron digests?

Yes, log analysis for debugging sessions works with cron digests. The generated structured anomaly reports are suitable for automated scheduling, allowing you to regularly monitor rate limit hits, timeouts, and repeating error patterns.