Process Log Files
process_logsSearch and filter log files using regex patterns with pagination and context lines for efficient log analysis.
Instructions
Process log files efficiently with pattern matching and pagination. Use offset to skip previous matches.
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": {
"file_path": "<file_path>",
"pattern": "<pattern>"
},
"name": "process_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to log file | |
| pattern | Yes | Regex pattern to match | |
| limit | No | Maximum matches to return | |
| offset | No | Skip first N matches before returning results (pagination) | |
| context_lines | No | Lines of context around matches | |
| response_format | No | summary = stats + 5 sample rows (for humans), full = all rows in data array (for processing) | summary |