Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Windows agent, file content not synced to Cloud Watch when first line empty #251

Closed
Krule opened this issue Jan 22, 2020 · 0 comments

Comments

@Krule
Copy link

Krule commented Jan 22, 2020

I am running an off-the-shelf application in the Windows EC2 container and attempting to sync the logs to Cloud-Watch using Amazon SSM Agent. EC2 container is destroyed and rebuilt weekly with latest updates (these including the SSM agent I assume). This worked fine for a while until suddenly it didn't.

A way longer than I wanted investigation resulted in:

  1. Off-the-shelf software outputs file logs starting with an empty line.
  2. Amazon SSM agent ignores files starting with an empty line.

The problem,for me, is now mitigated by pre-allocating 1 week worth of the log files (there is a deterministic naming scheme), containing filled first line, at machine creation time. Never the less, this might be an issue troubling others, so I wanted to raise awareness here.

A bit more details about the issue can be found here: https://stackoverflow.com/questions/59845475/amazon-ssm-agent-not-syncing-a-log-starting-with-empty-line

@Krule Krule closed this as completed May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant