analyze-php-logs

Installation
SKILL.md

PHP Log Analyzer

Parses PHP application logs across multiple formats, extracts structured data, identifies error patterns, and correlates related issues.

Supported Log Formats

1. PSR-3 / Monolog (JSON)

{"message":"Connection refused","context":{"exception":"PDOException","file":"/app/src/Infrastructure/Repository/OrderRepository.php","line":45,"trace":"..."},"level":500,"level_name":"CRITICAL","channel":"app","datetime":"2025-01-15T14:30:00+00:00","extra":{"url":"/api/orders","method":"POST","ip":"10.0.0.1"}}

Detection: Line starts with { and contains "level_name" or "channel"

Extraction pattern:

JSON decode each line
Fields: message, context.exception, context.file, context.line, level_name, datetime, extra.*
Stack trace: context.trace (string or array)
Related skills
Installs
6
GitHub Stars
71
First Seen
Mar 17, 2026