# log analyzer php

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

log analyzer php is a paid AI agent skill on Agensi by Ivan Firestone, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Ivan Firestone](https://www.agensi.io/creators/ifirestone)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/log-analyzer-php
- Tags: api, php, debugging, server-management, devops

## 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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the log analyzer php skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill differ from simply pasting a PHP error into a general-purpose AI?

This skill focuses on raw PHP runtime logs (FPM, mod_php, and CLI) to diagnose low-level issues like segmentation faults and memory leaks, whereas generic prompts often struggle with specific PHP version differences (7.4 vs. 8.3) or identifying sensitive data leaks within stack traces.

### Can I use this tool to debug Laravel or Symfony-specific application logs?

The skill is specifically optimized for vanilla PHP environments, custom engines, and Composer-based projects; however, it does not support Laravel-specific log formats or Illuminate-based error reporting.

### What is the setup process for integrating this skill into my workflow?

No complex installation is required; you simply provide the raw log text from your server or system output to the agent, and the skill will automatically begin the pattern matching and diagnostic process.

### Does this skill support the latest PHP 8.3 features and error patterns?

Yes, the skill is updated to stay current with PHP 8.x evolution, ensuring it can distinguish between modern JIT-related crashes and legacy 7.4 type-hinting errors.

### What exactly is included when I purchase this skill?

You receive the full diagnostic logic capable of parsing runtime errors, a security scrubber for sensitive data, and a resource monitor to identify FPM pool saturation and memory limit hits.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
