question

Adam Housman avatar image
Adam Housman asked

Effective Lambda Logging

Hi all, I'm developing for Alexa using NodeJS & Lambda. I'd like to be able to have a stream of logs from my lambda function, similar to how one would tail a log file on a webserver. Is this possible with Lambda? Right now I have to go to the Cloudwatch web GUI, wait for the log to show up, and click into the NEW log stream that was created. Is it possible to roll up all logs from a Lambda function into one stream and tail that using command line tools?
alexa skills kitsubmission testing certification
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Nick Gardner avatar image
Nick Gardner answered
I'm not sure there's any easy way to do it. Normally the AWS CLI would be good for this sort of thing, but it doesn't appear to have a command to get the logs themselves, but if you need certain metrics it may be good enough there. I think the best solution for now is to simply use the web GUI, but I'll look into it a bit more and see if there isn't anything better to use. -Nick
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.