Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

redirect aws lambda logs to a particular log group in cloudwatch

Tags:

aws-lambda

I have multiple lambda's. Is there a way to direct the logs from all these lambda to a specific cloud watch log group instead of each going to their own.

like image 568
user373201 Avatar asked Dec 07 '25 22:12

user373201


1 Answers

Turns out the other question is similar and looks like there is no way to currently aggregate logs from different lambda services.

I ended up creating an SQS FIFO queue. Send log messages to the queue from lambda and created a Log Lambda that will basically print all messages from the sqs queue.

When I want to view the logs I go the cloudwatch logs for the Log Lambda which have everything ordered.

like image 85
user373201 Avatar answered Dec 10 '25 21:12

user373201