find_errors
Find error lines in log files by matching common patterns like ERROR, Exception, FATAL. Quickly diagnose issues.
Instructions
Quickly finds error lines in a log file by matching common error patterns (ERROR, Exception, FATAL, Failed, Traceback, panic, etc.). Ideal for quick diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name of the log file to search | |
| max_tokens | No | Maximum tokens to return (default: 4000, max: 100000). Uses ~4 chars per token estimation. | |
| context_lines | No | Number of lines to show before and after each error (default: 2, max: 10) | |
| include_warnings | No | Also include warning-level messages (default: false) |