Skip to content

Instantly share code, notes, and snippets.

@Velrok
Created March 31, 2017 11:10
Show Gist options
  • Save Velrok/6f63b847cb6f44f7bebbda71bd8cb0b7 to your computer and use it in GitHub Desktop.
Save Velrok/6f63b847cb6f44f7bebbda71bd8cb0b7 to your computer and use it in GitHub Desktop.
Defines a bash function called follow_json_logs you can pipe a json log into.
function follow_json_log {
jq -R 'fromjson? | select (type == "object") | .message'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment