View console.log on AWS EC2 NodeJs server

Posted by Matt Bryson on 16-Jun-2014 17:53:53
Find me on:

If you want to view the console output of a NodeJS server on AWS, simply ssh into the EC2 Box and tail the following log file.


 ssh -i /path/to/keypair/certificate.cer
tail -f /var/log/nodejs/nodejs.log



Where /path/to/keypair/certificate.cer is the path to your certificate to ssh into the box, and

ec2-user@ec2-00-00-00-000, the digits are the IP of the Ec2 box.

Topics: AWS, NodeJs