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?