Where are the application logs for node.js on AWS OpsWorks

283 Views Asked by At

This is probably something really easy, but I can't find the where node.js is logging on AWS OpsWorks. I ssh into an instance, I confirm node is running and listening on port 80, yet the usual /var/log/nodejs does not exist, and the log directory that seems to have been created in my application root is empty. Any help appreciated.

1

There are 1 best solutions below

1
On BEST ANSWER

This is something I experienced recently. Monit configuration for NodeJs apps doesn't send logs to anywhere, so you can't access those logs.

A Similar thread explains the problem and how you can fix it: Node.js OpsWorks Layer console logs