1

ssh -t -i ~/work/keys/somekey.pem ec2-user@x.x.x.x 'docker logs --follow --tail 50 -t taggoeshere' | cut -c 32- | bunyan -o short

This works well for single line docker log output:

12:54:49.038 INFO xxxxxxxxxxx: Failed message, sending to S3 (event_id=no-event-id)

But as soon as it is multiline, it gets ugly. Anyone got a handy trick for cleaning this up?

Output

jcollum
  • 43,623
  • 55
  • 191
  • 321
  • What's ugly about it? For a particular JSON multiline input, what do you want bunyan to output? – Matt Nov 22 '17 at 06:41
  • I think if you compare that output to normal bunyan output you'll see the problem pretty quickly. Hint: indents. – jcollum Apr 16 '18 at 17:23

0 Answers0