
Analyze Logs
- 2.6k installs
- evlog.dev
analyze-logs is an agent skill that Analyze application logs from the .evlog/logs/ directory. Use when debugging errors, investigating slow requests, unders.
About
Read and analyze structured wide event logs from the local evlog logs directory to debug errors investigate performance issues and understand application behavior User asks to debug an error investigate a bug or understand why something failed User asks about request patterns slow endpoints or error rates User asks what happened or what s going on with their application User asks to analyze logs check recent errors or review application behavior User mentions a specific error message or status code they re seeing Logs are written by evlog s file system drain as jsonl files organized by date Format detection The drain supports two modes NDJSON default pretty false One compact JSON object per line Parse line by line Pretty pretty true Multi line indented JSON per event Parse by reading the entire file and splitting on top level objects e g JSON parse content replace n g or use a streaming JSON parser Always check the first few bytes of the file to detect the format if the second
- description: Analyze application logs from the .evlog/logs/ directory. Use when debugging errors, investigating slow req
- Read and analyze structured wide-event logs from the local `.evlog/logs/` directory to debug errors, investigate perform
- - User asks to debug an error, investigate a bug, or understand why something failed
- Follow analyze-logs SKILL.md steps and documented constraints.
- Follow analyze-logs SKILL.md steps and documented constraints.
Analyze Logs by the numbers
- 2,561 all-time installs (skills.sh)
- +136 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #335 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
analyze-logs capabilities & compatibility
- Capabilities
- description: analyze application logs from the . · read and analyze structured wide event logs from · user asks to debug an error, investigate a bug · follow analyze logs skill.md steps and documente
- Use cases
- orchestration
What analyze-logs says it does
description: Analyze application logs from the .evlog/logs/ directory. Use when debugging errors, investigating slow requests, understanding request patterns, or answering questions about application
Read and analyze structured wide-event logs from the local `.evlog/logs/` directory to debug errors, investigate performance issues, and understand application behavior.
- User asks to debug an error, investigate a bug, or understand why something failed
npx skills add https://github.com/evlog.dev --skill analyze-logsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 2.6k |
|---|---|
| Repository | evlog.dev ↗ |
When should an agent use analyze-logs and what problem does it solve?
Analyze application logs from the .evlog/logs/ directory. Use when debugging errors, investigating slow requests, understanding request patterns, or answering questions about application behavior. Rea
Who is it for?
Developers invoking analyze-logs as documented in the skill source.
Skip if: Skip when requirements fall outside analyze-logs documented scope.
When should I use this skill?
Analyze application logs from the .evlog/logs/ directory. Use when debugging errors, investigating slow requests, understanding request patterns, or answering questions about application behavior. Rea
What you get
Outputs aligned with the analyze-logs SKILL.md workflow and stated deliverables.
Files
Analyze application logs
Read and analyze structured wide-event logs from the local .evlog/logs/ directory to debug errors, investigate performance issues, and understand application behavior.
When to Use
- User asks to debug an error, investigate a bug, or understand why something failed
- User asks about request patterns, slow endpoints, or error rates
- User asks "what happened" or "what's going on" with their application
- User asks to analyze logs, check recent errors, or review application behavior
- User mentions a specific error message or status code they're seeing
Finding the logs
Logs are written by evlog's file system drain as .jsonl files, organized by date.
Format detection: The drain supports two modes:
- NDJSON (default,
pretty: false): One compact JSON object per line. Parse line-by-line. - Pretty (
pretty: true): Multi-line indented JSON per event. Parse by reading the entire file and splitting on top-level objects (e.g.JSON.parse('[' + content.replace(/\}\n\{/g, '},{') + ']')) or use a streaming JSON parser.
Always check the first few bytes of the file to detect the format: if the second character is a newline or ", it's NDJSON; if it's a space or newline followed by spaces, it's pretty-printed.
Search order — check these locations relative to the project root:
1. .evlog/logs/ (default) 2. Any .evlog/logs/ inside app directories (monorepos: apps/*/.evlog/logs/)
Use glob to find log files:
.evlog/logs/*.jsonl
*/.evlog/logs/*.jsonl
apps/*/.evlog/logs/*.jsonlFiles are named by date: 2026-03-14.jsonl. Start with the most recent file.
If no logs are found
The file system drain may not be enabled. Guide the user to set it up:
import { createFsDrain } from 'evlog/fs'
// Nuxt / Nitro: server/plugins/evlog-drain.ts
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('evlog:drain', createFsDrain())
})
// Hono / Express / Elysia: pass in middleware options
app.use(evlog({ drain: createFsDrain() }))
// Fastify: pass in plugin options
await app.register(evlog, { drain: createFsDrain() })
// NestJS: pass in module options
EvlogModule.forRoot({ drain: createFsDrain() })
// Standalone: pass to initLogger
initLogger({ drain: createFsDrain() })After setup, the user needs to trigger some requests to generate logs, then re-analyze.
Log format
Each line is a self-contained JSON object (wide event). Key fields:
| Field | Type | Description |
|---|---|---|
timestamp | string | ISO 8601 timestamp |
level | string | info, warn, error, debug |
service | string | Service name |
environment | string | development, production, etc. |
method | string | HTTP method (GET, POST, etc.) |
path | string | Request path (/api/checkout) |
status | number | HTTP response status code |
duration | string | Request duration ("234ms") |
requestId | string | Unique request identifier |
error | object | Error details: name, message, stack, statusCode, data |
error.data.why | string | Human-readable explanation of what went wrong |
error.data.fix | string | Suggested fix for the error |
source | string | client for browser logs, absent for server logs |
userAgent | object | Parsed browser/OS/device info |
All other fields are application-specific context added via log.set() (e.g. user, cart, payment).
How to analyze
Step 1: Read the most recent log file
Read the latest .jsonl file. Each line is one JSON event. Parse each line independently.
Step 2: Identify the relevant events
Filter based on the user's question:
- Errors: look for
"level":"error"orstatus >= 400 - Specific endpoint: match on
path - Slow requests: parse
duration(e.g."706ms") and filter high values - Specific user/action: match on application-specific fields
- Client-side issues: filter by
"source":"client" - Time range: compare
timestampvalues
Step 3: Analyze and explain
For each relevant event:
1. What happened: summarize the path, method, status, level 2. Why it failed (errors): read error.message, error.data.why, and the stack trace 3. How to fix: check error.data.fix for suggested remediation 4. Context: examine application-specific fields for business context (user info, payment details, etc.) 5. Patterns: look for recurring errors, degrading performance, or correlated failures
Analysis patterns
Find all errors
Filter: level === "error"
Group by: error.message or path
Look for: recurring patterns, common failure modesFind slow requests
Filter: parse duration string, compare > threshold (e.g. 1000ms)
Sort by: duration descending
Look for: specific endpoints, time-of-day patternsTrace a specific request
Filter: requestId === "the-request-id"
Result: single wide event with all context for that requestError rate by endpoint
Group events by: path
Count: total events vs error events per path
Look for: endpoints with high error ratiosClient vs server errors
Split by: source === "client" vs no source field
Compare: error patterns between client and server
Look for: client errors that don't have corresponding server errors (network issues)Important notes
- Each line is a complete, self-contained event. Unlike traditional logs, you don't need to correlate multiple lines — one line has all the context for one request.
- The
error.data.whyanderror.data.fixfields are evlog-specific structured error fields. When present, they provide the most actionable information. - Duration values are strings with units (e.g.
"706ms"). Parse the numeric part for comparisons. - Events with
"source":"client"originated from browser-side logging and were sent to the server via the transport endpoint. - Log files are
.gitignore'd automatically — they exist only on the local machine or server where the app runs.
Related skills
Forks & variants (1)
Analyze Logs has 1 known copy in the catalog totaling 221 installs. They canonicalize to this original listing.
- hugorcd - 221 installs
FAQ
What is analyze-logs?
Analyze application logs from the .evlog/logs/ directory. Use when debugging errors, investigating slow requests, understanding request patterns, or answering questions about appli
When should I use analyze-logs?
Analyze application logs from the .evlog/logs/ directory. Use when debugging errors, investigating slow requests, understanding request patterns, or answering questions about appli
Is analyze-logs safe to install?
Review the Security Audits panel on this page before production use.