Skip to content

Instantly share code, notes, and snippets.

@sleepyfox
Last active August 5, 2019 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sleepyfox/e940feb961aeb0ba65f648aff3925258 to your computer and use it in GitHub Desktop.
Save sleepyfox/e940feb961aeb0ba65f648aff3925258 to your computer and use it in GitHub Desktop.
jq cookbook

jq cookbook

A series of easy-to-use recipes for helping filter logs et. al. with jq:

Show all logs from production for a service named 'foreboding'

cat swarm.prod/*/*.log | jq select(.service == "foreboding")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment