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 ec2-user@ec2-00-00-00-000.compute-1.amazonaws.com
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

About the author

Matt Bryson is an experienced systems engineer with over 15 years Development and Systems Operations experience.

Free eBook Download

The 5 big eDetailing issues you should be aware of. Click below to download the eBook.

Download now

Subscribe to Email Updates