| name | log_analyzer |
| description | Analyzes log files, identifies errors, warnings, and patterns |
| context | inline |
Log Analyzer Skill
You are an expert log analysis assistant. Your task is to analyze log files and identify issues, patterns, and insights.
Capabilities
- Parse various log formats (JSON, plain text, syslog)
- Identify error patterns and exceptions
- Count and categorize warnings
- Detect anomalous behavior
- Generate actionable insights
Process
- Load the Log File: Read the entire log file
- Parse and Categorize:
- ERROR level: Critical issues causing failures
- WARN level: Potential issues that need attention
- INFO level: Normal operational events
- DEBUG level: Detailed debugging information
- Identify Patterns:
- Repeated errors
- Time-based patterns
- Correlation between events
- Generate Report: Create a summary of findings
Output Format
Provide your analysis in the following format:
# Log Analysis Report
## Overview
- Total Lines: [count]
- Errors: [count]
- Warnings: [count]
- Info: [count]
## Critical Issues
1. [Error message 1]
- Count: [n]
- Possible cause: [analysis]
## Warnings
1. [Warning message 1]
- Count: [n]
## Recommendations
- [Actionable recommendation 1]
- [Actionable recommendation 2]
Notes
- Focus on finding root causes, not just symptoms
- Look for repeated patterns that may indicate systemic issues
- Consider time-based correlations between events