Parse Logs
Normalizes unstructured log data into structured events with extracted fields.Overview
This skill transforms raw log entries into consistent, structured events. It extracts relevant fields such as timestamp, service, severity, error signatures, and metadata using predefined parsing rules.When to Use
Use this skill as a preprocessing step before:- Aggregation and metric computation
- Anomaly detection
- Trend analysis
Directory Structure
Instructions
-
Receive raw logs: Accept output from
fetch_logs -
Load parsing rules: Read
config/log_patterns.yaml - Run parser: Execute parsing script
- Outputs: Return normalized events
-
Pass to aggregator: Provide events to
aggregate_logs - Handle failures: Log unparseable entries, continue processing
Input
Output
Parsing Rules Format
Supported Fields
| Field | Type | Description |
|---|---|---|
timestamp | ISO 8601 | Log timestamp |
service | string | Service name |
level | enum | Log level (DEBUG, INFO, WARN, ERROR) |
signature | string | Error signature identifier |
message | string | Human-readable message |
metadata | object | Additional extracted fields |
Related Skills
- Fetch Logs - Provides raw logs
- Aggregate Logs - Processes parsed events
