# log analyzer dotnet

> Structured diagnostic reports for .NET and C# logs, including EF Core, Serilog, and ASP.NET Core error tracing.

log analyzer dotnet 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-20
- Security: scan passed (2026-10-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/log-analyzer-dotnet
- Tags: api, dotnet-core, c-sharp, entity-framework, serilog, debugging

## About this skill

Debug .NET and C# application failures faster by automating log parsing and diagnostic reporting. This skill identifies root causes across ASP.NET Core, Worker Services, and Entity Framework Core logs, including support for Serilog, NLog, and Microsoft.Extensions.Logging formats. It eliminates the manual effort of tracing long stack traces and identifying cascading failures.

### What it does
- **Trace Exception Chains** by identifying the primary failure point and traversing `Inner Exception` blocks to find the root cause.
- **Analyze Framework Logs** from `Microsoft.AspNetCore`, `EF Core` slow queries, and `Dependency Injection` resolution errors.
- **Sanitize Sensitive Data** by flagging connection strings, JWT tokens, PII, and SQL parameters in red to prevent security leaks.
- **Correlate Requests** using `RequestId` or `TraceId` to reconstruct the execution flow of failed operations.
- **Detect Performance Issues** like N+1 queries, slow DB commands, and circuit breaker rejections from Polly.

### How it works
1. **Submit Log Snippet**: Provide the raw log output containing `System.*Exception`, `[ERR]`, or `fail:` markers.
2. **Context Validation**: The skill asks for missing details regarding the .NET version, logging framework, or environment if not evident.
3. **Structured Diagnostics**: It parses the content to build a formal report following a standardized executive summary format.

### Frameworks & tools
Compatible with .NET 6/7/8 and Framework 4.x. Supports Serilog, NLog, log4net, Microsoft.Extensions.Logging, Entity Framework Core, and Polly.

### Why this beats prompting it yourself
Generic prompts often miss the nuance of .NET-specific DI captive dependencies or EF Core sensitive data logging risks. This skill uses a structured diagnostic template that ensures every critical finding includes a hypothesis and actionable C# fix.

### Use cases
- Debugging `Unable to resolve service` errors in complex DI containers.
- Identifying deadlocks (SQL 1205) and timeouts in Entity Framework Core.
- Auditing logs for accidentally exposed PII or credentials in non-prod environments.
- Profiling slow ASP.NET Core endpoints using `Hosting.Diagnostics` data.

### Known limitations
Requires full stack traces for accurate root cause analysis. Performance insights for EF Core require `Executed DbCommand` logs to be present.

## 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 dotnet 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

### Which AI agents or models is the log analyzer dotnet skill compatible with?

This skill is compatible with all modern LLMs that support structured text input, including GPT-4o, Claude 3.5 Sonnet, and Gemini Pro. It is designed to work within any AI agent interface where you can paste log snippets or upload log files.

### Can this skill handle logs from older .NET Framework applications, or is it limited to .NET Core?

Yes, it is designed to parse logs from both modern .NET (6/7/8) and legacy .NET Framework 4.x applications. It specifically understands the differences in how these versions handle Dependency Injection and stack trace formatting.

### How does the skill handle sensitive data like connection strings or PII found in the logs?

The skill identifies and flags sensitive information like connection strings, JWTs, and PII in red within the diagnostic report. This ensures that developers can review logs safely without accidentally propagating security risks into their documentation or ticketing systems.

### Do I need to install any NuGet packages or libraries in my C# project to use this?

No complex installation is required; simply add the skill to your AI agent's library. Once active, you can immediately begin submitting raw log snippets from Serilog, NLog, or EF Core for instant analysis.

### What is the minimum amount of log data required for a successful diagnostic report?

For the most accurate results, you should include the full stack trace and the lines immediately preceding the error. For Entity Framework issues, including the 'Executed DbCommand' logs will allow the skill to provide specific performance and SQL optimization advice.

---

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.
