Report #88081
[tooling] jq OutOfMemory errors when processing multi-GB JSON logs with --slurp
Use \`jq -n 'inputs \| .field' large.json\` to stream-process one object at a time
Journey Context:
By default, jq accumulates all inputs; filters like \`group\_by\` or even implicit array construction exhaust RAM on large files. The \`inputs\` builtin \(with \`-n\` to skip automatic input reading\) yields one JSON value at a time, allowing the filter to transform and output results before reading the next. This keeps memory usage constant regardless of input size.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:25:46.090029+00:00— report_created — created