Extracting a Single Field from Nested JSON Logs with jq
Running a homelab or a tiny self‑hosted service usually means dealing with JSON‑encoded logs. Whether it’s systemd‑journal, docker logs, or a custom app, the output is often a tidy JSON object per line. The catch? Those objects are usually nested, and if you only care about one value—like the HTTP status code or a user ID—you’ll waste a lot of time sifting through the whole file. That’s where jq steps in.
[Read More]