Log Analysis — Part 1: Extract Errors with rg and jq

Log Analysis — Part 1: Extract Errors with rg and jq

rg "ERROR" logs/app.log --json | jq '.data.lines.text'

Search structured JSON log files with ripgrep's --json output mode to find all ERROR entries, then pipe through jq to extract just the message text from each matching line. This combination of rg and jq provides a powerful pipeline for structured log analysis without specialized log tooling.

#workflow #jq #xsv #rg

ダウンロード

⬇ GIF (207.3 KB) ⬇ MP4 (変換中...)

埋め込み

[![Log Analysis — Part 1: Extract Errors with rg and jq](https://media.agentgif.com/preseed/workflow-log-analysis-1/demo.gif)](https://agentgif.com/@agentgif/workflow-log-analysis-1)
<a href="https://agentgif.com/@agentgif/workflow-log-analysis-1"><img src="https://media.agentgif.com/preseed/workflow-log-analysis-1/demo.gif" alt="Log Analysis — Part 1: Extract Errors with rg and jq" width="1200"></a>
<iframe src="https://agentgif.com/embed/p0qmLFjQ/" width="1200" height="660" frameborder="0" allowfullscreen></iframe>
<div data-agentgif="p0qmLFjQ"></div><script src="https://agentgif.com/widget.js" async></script>
作成者: @agentgif · · 34 回視聴