Created
March 31, 2017 11:10
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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