query_log_pattern
Filter NDJSON log files by field/value patterns and retrieve up to a specified number of matching entries for log triage.
Instructions
Filter NDJSON log file by field/value pattern, return top N matching entries.
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": {
"logFile": "<logFile>",
"field": "<field>",
"value": "<value>"
},
"name": "query_log_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | JSON field name to filter on (e.g. 'level', 'service') | |
| limit | No | Max entries to return | |
| value | Yes | Value to match (case-insensitive substring) | |
| logFile | Yes | Absolute path to the NDJSON log file | |
| lineStartPattern | No | Regex that marks new log line start (e.g. "^{") — enables multiline stack trace reconstruction |