log-analysis
Analyze application and system logs to identify errors, patterns, and root causes. Use log aggregation tools and structured logging for effective debugging.
npx skills add majiayu000/claude-skill-registry --skill log-analysis --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Log Analysis ## 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 ## Instructions ### 1. **Structured Logging** ```javascript // 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'); // JSON Format (Elasticsearch friendly) { "@timestamp": "2024-01-15T10:30:00Z", "level": "ERROR", "service": "api-gateway", "trace_id": "abc123", "message": "Database connection failed", "error": { "type": "ConnectionError", "code": "ECONNREFUSED" }, "context": { "database": "users", "operation": "SELECT" } } ``` ### 2. **Log Levels & Patterns** ```yaml Log Levels: DEBUG: Detailed diagnostic info - Variable values - Function entry/exit - Intermediate calculations - Us
- Overview
- When to Use
- Instructions
- 1. Structured Logging
- 2. Log Levels & Patterns
- 3. Log Analysis Tools
- 4. Common Log Analysis Queries
- Key Points
What does the log-analysis skill do?
Analyze application and system logs to identify errors, patterns, and root causes. Use log aggregation tools and structured logging for effective debugging.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill log-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
