Read heroku log output with bunyan
The stuff before the JSON in heroku logs output has to be cut off for
bunyan to work.
$ heroku logs | sed -l 's/.*app\[web\..*\]\: //' | bunyan
Flag -l makes the output buffered by line.
Alias
alias bunyan-heroku="sed -l 's/.*app\[web\..*\]\: //' | bunyan" 
$ heroku logs --tail | bunyan-heroku -o short
Previously used cut and awk, but found a better
solution,
for which a credit goes to @kennbrodhagen.
Written by Raine Virta
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Heroku 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#