Detect Anomalies
Identifies abnormal patterns, spikes, and unusual behavior in log metrics.Overview
This skill analyzes aggregated metrics against historical baselines to detect anomalies. It identifies error spikes, new error signatures, latency changes, and other deviations from normal behavior.When to Use
Use this skill when:- Monitoring system health
- Investigating incidents
- Setting up alerting rules
- Analyzing performance issues
Directory Structure
Instructions
-
Receive aggregated metrics: Accept output from
aggregate_logs -
Load detection rules: Read
config/anomaly_thresholds.yaml - Run detector: Execute anomaly detection script
- Outputs: Return detected anomalies with evidence
-
Save anomalies: Write to
output/anomalies.json -
Pass to next skill: Provide anomalies to
high_hypothesisorgenerate_summary
Input
Output
Anomaly Types
| Type | Description | Severity |
|---|---|---|
ERROR_SPIKE | Sudden increase in error rate | high |
NEW_ERROR_SIGNATURE | New error pattern detected | medium |
LATENCY_SPIKE | Response time increase | medium |
VOLUME_CHANGE | Unusual log volume change | low |
ERROR_RATE_DROP | Unusual absence of errors | low |
Confidence Levels
- High (0.8-1.0): Strong evidence, clear deviation
- Medium (0.5-0.8): Moderate evidence, worth investigation
- Low (0.2-0.5): Weak evidence, possible false positive
Related Skills
- Aggregate Logs - Provides metrics
- High Hypothesis - Explains anomalies
- Generate Summary - Reports anomalies
