Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudWatch Insights: get logs of errored lambdas

A lambda can have a result that is either a success or an error.

I want to see the logs of lambda that errored. I am trying to do that via a CloudWatch Insights query.

How can I do this?

like image 228
Matthieu Napoli Avatar asked Jul 24 '19 16:07

Matthieu Napoli


Video Answer


1 Answers

If someone comes here looking for a solution, here's what I use:

filter @message like /(?i)(Exception|error|fail)/| fields @timestamp, @message | sort @timestamp desc | limit 20

like image 131
Varunaditya Jadwal Avatar answered Oct 06 '22 00:10

Varunaditya Jadwal