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.
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 |