log
v1.0.2Log parse, filter, analyze for AI agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
parse_logs
Parse log content in common formats (JSON, Apache/Nginx, syslog, structured, or custom regex). Returns structured entries with timestamp, level, message, source, and extracted fields.
| Parameter | Type | Description |
|---|---|---|
content * | string | Raw log content to parse |
custom_pattern | string | Custom regex pattern with named groups: (?<timestamp>), (?<level>), (?<message>), (?<source>) |
format | string | Log format to use for parsing. Use 'auto' to detect automatically. |
limit | number | Maximum number of entries to return |
filter_logs
Filter log entries by level, date range, keyword, regex pattern, or source. Returns matched entries and level counts.
| Parameter | Type | Description |
|---|---|---|
content * | string | Raw log content to filter |
date_from | string | Start date (ISO 8601) for date range filter |
date_to | string | End date (ISO 8601) for date range filter |
format | string | Log format |
keyword | string | Keyword to search for (case-insensitive) |
levels | array | Filter by log levels, e.g. ['ERROR', 'WARN'] |
limit | number | Maximum number of matched entries to return |
regex_pattern | string | Regex pattern to match against log messages |
source | string | Filter by source/logger name (partial match) |
analyze_logs
Analyze log patterns: top 10 most frequent errors, error rate over time, request volume per hour, slowest endpoints (from access logs), and anomaly detection (sudden spikes/drops).
| Parameter | Type | Description |
|---|---|---|
content * | string | Raw log content to analyze |
format | string | Log format |
format_logs
Convert logs between formats (JSON, plain text, CSV, table). Supports colorization by level, field extraction, and summary report generation.
| Parameter | Type | Description |
|---|---|---|
content * | string | Raw log content to format |
colorize | boolean | Apply ANSI color codes based on log level |
include_fields | boolean | Include extracted fields in plain text output |
input_format | string | Input log format |
max_message_length | number | Truncate messages longer than this |
output_format | string | Desired output format |
summary | boolean | Generate a summary report instead of formatted output |
log_stats
Compute log statistics: total lines, lines per level, date range, unique IPs, top user agents, status code distribution, throughput, and more.
| Parameter | Type | Description |
|---|---|---|
content * | string | Raw log content to compute statistics for |
format | string | Log format |
rendered | boolean | Return human-readable rendered output instead of JSON |