Read a field from each JSON log line.
Section: Logs and Reporting
Extract log levels
bash
bash
cat app.log | jq -r '.level'Explanation
Works when each log line is a JSON object.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Logs and Reporting