JQ

Tools

jq is a lightweight and flexible command-line JSON processor.

文档在这里

例1,查看某个用户的请求记录

cat app.giftpack.api.access.log | grep 3e3f805ec7fe47c9b9f245dfe3d74d82 | jq '.method + " " + .path'
END

Published @ Aug 15, 2017