windowsamazon-ec2

Logging AWS EC2 UserData script output on Windows


I'm trying to get the EC2 UserData script logs and direct them to system logs on Windows.

On Linux, someone already found out the solution (http://alestic.com/2010/12/ec2-user-data-output). Basically you'd tee /var/log/user-data.log to system logs.

I need to know how to do it for Windows instances. I could not find any user-data.log on my windows instance.


Solution

  • For those who find this and are still looking you can try looking in ProgramData. There are a couple log files in there that give you more info about boot.

    C:\ProgramData\Amazon\EC2-Windows\Launch\Log\Ec2Launch.log
    C:\ProgramData\Amazon\EC2-Windows\Launch\Log\UserdataExecution.log