3

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.

worker1138
  • 2,071
  • 5
  • 29
  • 36

1 Answers1

1

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

Community
  • 1
  • 1
Umair A. Shahid
  • 134
  • 1
  • 4
  • I figured out that I had to override the template, eventually, after learning how to use Chef. What a journey to simply enable logging! – worker1138 May 08 '15 at 22:17