Skip to content

Structured log analysis guide covering error triage, pattern detection, and root-cause tracing across application and system logs.

CCM score
35 of 100
skills.sh installs
682
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers troubleshooting errors, performance investigation, security incident analysis, auditing user actions, and application health monitoring
  • Includes a Quick Start contrasting structured JSON logs with unstructured console.log output, plus reference guides for log levels, aggregation tools, and common queries
  • Points to a references/ directory with four guides: structured logging, log levels and patterns, log analysis tools, and common analysis queries
  • Designed for developers debugging services who want machine-readable logs that aggregation tools can parse

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill log-analysis -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Log Analysis

Table of Contents

Overview

Logs are critical for debugging and monitoring. Effective log analysis quickly identifies issues and enables root cause analysis.

When to Use

  • Troubleshooting errors
  • Performance investigation
  • Security incident analysis
  • Auditing user actions
  • Monitoring application health

Quick Start

Minimal working example:

// Good: Structured logs (machine-readable)
logger.info({
  level: 'INFO',
  timestamp: '2024-01-15T10:30:00Z',
  service: 'auth-service',
  user_id: '12345',
  action: 'user_login',
  status: 'success',
  duration_ms: 150,
  ip_address: '192.168.1.1'
});

// Bad: Unstructured logs (hard to parse)
console.log('User 12345 logged in successfully in 150ms from 192.168.1.1');

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Debugging, Security, DevOps & Cloud
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258

Similar to Log Analysis

More Debugging