log analyzer php

    1

    Analyze PHP runtime logs (fpm, mod_php, CLI) to diagnose fatal errors, memory leaks, and segmentation faults.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    log analyzer php

    Example session with this skill installed

    Analyze this log: [pool www] child 1234 exited on signal 11 (SIGSEGV) after 0.001s. Also seeing PHP Fatal error: Uncaught Error: Class "App\Services\PaymentGateway" not found in /var/www/index.php:45

    • Read your context and instructions
    • Compiled the log analyzer php

    The log indicates a critical segmentation fault (SIGSEGV) in the php-fpm child process and a fatal autoloading error.

    REPORTE DE ANÁLISIS DE LOG — PHP

    📋 RESUMEN EJECUTIVO

    • Tecnología: PHP (Versión no declarada) / php-fpm
    • Entorno: No declarado (asumiendo PROD por pool name)
    • Componente(s): [pool www]
    • Diagnóstico breve: Fallo crítico por clase no encontrada seguido de un crash de proceso (SIGSEGV).

    🔴 HALLAZGOS CRÍTICOS

    Fatal Error: Class "App\Services\PaymentGateway" not found. Esto indica que el cargador de clases de Composer no encuentra la definición o el archivo no existe en la ruta esperada por el namespace.

    php-fpm Crash: child exited on signal 11 (SIGSEGV). Este es un error a nivel de memoria, usualmente causado por una extensión nativa de PHP corrupta o incompatible (como OPcache o Xdebug) activada durante la ejecución del error fatal.

    🟡 ADVERTENCIAS

    Saturación de Pool: El crash ocurrió inmediatamente (0.001s), sugiriendo un fallo en el arranque del script más que un leak de memoria prolongado.

    ⚠️ DATOS SENSIBLES

    Valor: <span style="color:red;font-weight:bold">/var/www/index.php</span> (Ruta absoluta del sistema expuesta en el log).

    ❓ PREGUNTAS ABIERTAS / 🛠️ PRÓXIMOS PASOS

    1. Ejecuta composer dump-autoload para regenerar el mapa de clases de PSR-4.
    2. Verifica si se han actualizado extensiones de PHP recientemente (ej. imagick, gd).
    3. ¿Qué versión exacta de PHP estás usando? Los SIGSEGV son comunes en desajustes de versiones de extensiones.

    Next steps

    • Regenerar el autoload de Composer.
    • Revisar la lista de extensiones activas con php -m.
    • Confirmar si la ruta /var/www/index.php tiene los permisos de lectura correctos para el usuario de fpm.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Debugging raw PHP environments shouldn't feel like deciphering ancient scrolls. This skill parses runtime logs from php-fpm, mod_php, and CLI to isolate root causes without the overhead of modern framework abstractions.

    What it does

    • Runtime diagnostic parses PHP Fatal errors, Warnings, Deprecated notices, and Parse errors from raw logs.
    • Stack trace mapping reconstructs the execution flow from #0 {main} up to the failure point.
    • SAPI identification distinguishes between pool-specific php-fpm events, mod_php crashes, and CLI execution failures.
    • Security scrubbing flags exposed database connection strings, session IDs, and hardcoded API keys in error messages.
    • Resource monitoring identifies memory limit exhaustion and execution timeouts within the runtime configuration.

    How it works

    1. Log ingestion where the developer provides raw text from php-fpm logs, system logs, or standard error output.
    2. Environment context involving a quick check for PHP version (7.4 to 8.3) and SAPI type to adjust for language-level changes.
    3. Pattern matching against known runtime failures like class autoloading issues, PDO exceptions, or SIGSEGV signals.
    4. Structured reporting outputting a standardized executive summary with severity levels and sensitive data alerts.

    Frameworks & tools

    This tool focuses on core PHP runtimes (7.4, 8.x), php-fpm, and Composer-based autoloading. It is specifically designed for vanilla PHP or custom engines, excluding Laravel-specific log formats.

    Why this beats prompting it yourself

    Generic prompts often miss the subtle differences between PHP 7.4 and 8.x type conversions or fail to alert you when display_errors is dangerously active in production. This skill specifically looks for memory leaks and fpm pool saturation patterns that standard models overlook.

    Use cases

    • Debugging "White Screen of Death" events on legacy PHP servers.
    • Investigating max_children saturation in php-fpm pools under high load.
    • Auditing logs for sensitive data leaks during runtime exceptions.
    • Troubleshooting PDO connection failures and SQL state errors.

    Known limitations

    Does not support Laravel/Illuminate log formats. Requires clear stack traces for deep analysis. Focuses on runtime and server-side errors rather than client-side logic.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scanned

    Verified clean today

    • Passed all security checks, Safe to install

    Listedtoday

    What's inside

    Frequently Asked Questions