AWS Cloudwatch not consistently logging lambda invocations

30 views Asked by At

I have a lambda function and API Gateway setup that lets me invoke by lambda function by making a simple GET request. Sometimes a get request results in a log being made to Cloudwatch, sometimes it does not. I need to debug why certain query params result in an "internal server error", and so I need to be able to see the logs, but this is near-impossible due to the sporadic nature of the log writes.

Is this normal behavior that cloudwatch only sometimes creates logs for lambda invocations?

(I have not set up any fancy mechanisms such as e.g. checking request headers, etc.)

0

There are 0 answers