Skip to content

log-errors

by rob

Developer

Extract and explain errors from large log files

logs errors debugging
# log-errors

Extract and explain errors from large log files

## Installation

This is a CmdForge tool. Install it from the CmdForge registry or create it locally using `cmdforge create`.

## Usage

Pipe log content into the tool to extract and explain errors:

```bash
# Analyze a log file
cat application.log | log-errors

# Analyze recent systemd logs
journalctl -n 1000 | log-errors

# Analyze Docker container logs
docker logs my-container | log-errors

# Analyze nginx error logs
tail -n 500 /var/log/nginx/error.log | log-errors
```

## Arguments

This tool accepts no arguments.

## How It Works

1. **Extract errors** - Parses the input log data and identifies error entries using code analysis
2. **Explain errors** - Uses Claude Haiku to analyze extracted errors and provide explanations and potential solutions

The tool processes log data through a two-step pipeline: first extracting relevant error information from potentially large log files, then using AI to provide human-readable explanations and troubleshooting guidance.

## Dependencies

None

No reviews yet.

Issues

No issues reported for this tool.