log_analyzer_parse
Parse and analyze log files by automatically detecting format and extracting metadata including time range and level distribution. Supports nine log formats with optional hints, line limits, and markdown or JSON output.
Instructions
Parse and analyze a log file, detecting its format and extracting metadata.
Args:
file_path: Path to the log file to analyze
format_hint: Force specific format (syslog, apache_access, apache_error, jsonl,
docker, python, java, kubernetes, generic) or None for auto-detect
max_lines: Maximum lines to parse (100-100000, default 10000)
response_format: Output format - 'markdown' or 'json'
Returns:
Analysis results including detected format, time range, level distribution,
and sample entries.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| format_hint | No | ||
| max_lines | No | ||
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |