aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).
https://aws.amazon.com/systems-manager/
Apache License 2.0
1.04k stars 322 forks source link

Streaming logs to CloudWatch strips ANSI characters #379

Open rmccue opened 3 years ago

rmccue commented 3 years ago

Hi there!

The SSM agent strips ANSI characters when streaming logs to CloudWatch. This makes it impossible to view an accurate log of the output of a session when using applications which use ANSI control characters; e.g. the output of top.

It would be great if it was possible to stream logs to CloudWatch without having these control characters stripped, so that the log could be view and "replayed" at a later date.