Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json pretty tail log

$ tail -f myLogFile | jq -Rr 'split("	") | [.[0], (.[2] | fromjson.log)] | join("	")'
2019-07-04T09:53:04-07:00   The content
2019-07-04T10:15:37-07:00   I'm actually
2019-07-04T10:15:37-07:00   Interested on
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #json #pretty #tail #log
ADD COMMENT
Topic
Name
4+7 =