UserDataExecution Log Not Available in CloudWatch

0

I am trying to get UserdataExecution.log into CloudWatch, but not able to. It becomes really painful to log into the server remotely (Windows). In my case, it doesn't have a Public IP. So, need to rely on SSM. Anyways, that's not the point. But, I am wondering how to see the UserdataExecution.log without logging into the server, probably on CloudWatch or some other approach. Logs seem to appear on CloudWatch only if they keep getting updated, say, System or Eventviewer, but not others.

gefragt vor einem Jahr180 Aufrufe
1 Antwort
0

I believe you are looking for Logging Windows Amazon EC2 UserData activity in Amazon CloudWatch This is a pretty well thought out solution that utilizes a logging function to push data to CloudWatch as the tasks are being processed.

AWS
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen