Create jq training documentation for parsing JSON logs
Problem:
It can be difficult to read, grep, and parse GitLab logs in JSON format.
Background
jq
is like sed
and awk
for JSON logs - you can use it to slice and filter and map and transform structured data with the same ease that sed , awk , grep and friends let you play with text
For parsing and analyzing JSON logs, jq
is arguably the most versatile, lightweight, and powerful tool available.
The jq
syntax is not automatically intuitive to someone familiar with sed
, awk
, and grep
, however, so there's a bit of a learning curve (just like there was with those other tools).
There are docs and manuals.
Proposal
Create a training doc with examples on how to use jq
to quickly and effectively parse GitLab's JSON logs for information helpful for troubleshooting and Support.