correlate_request
Reconstruct distributed traces by gathering all log events matching a trace/request ID from multiple NDJSON files, sorted chronologically.
Instructions
Reconstruct a distributed trace by collecting all log events matching a trace/request ID across multiple NDJSON files, sorted chronologically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idField | No | Field name containing the trace/request ID | trace_id |
| traceId | Yes | Trace/request ID value to search for | |
| logFiles | Yes | Array of absolute paths to NDJSON log files | |
| serviceField | No | Field name for service/component name | service |
| timestampField | No | Field name for ISO timestamp | timestamp |
| lineStartPattern | No | Regex that marks new log line start — enables multiline stack trace buffering |