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 (กำลังแปลง...)
Embed
[](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>