log_overview
Summarize log files, rotated sets, directories, or globs to reveal exact line counts, detected format, time range, multiline styles, and level histograms; large files use sampled histograms.
Instructions
Start here. Summarise a log file, rotated set, directory or glob: size, exact line count, detected format (JSON lines, logfmt, syslog, nginx/apache access, ISO-timestamped text, plain), multi-line style (Python traceback / Java stack trace), time range, and a level histogram.
Files larger than max_scan_mb MiB get a sampled (clearly marked ESTIMATED) level histogram;
line counts and first/last timestamps stay exact. tz is the UTC offset used to interpret
timestamps that carry no zone and to display times (e.g. +03:00).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "log_overview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | +00:00 | |
| path | Yes | ||
| max_scan_mb | No | ||
| include_rotated | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |