aws-lambda-layers icon indicating copy to clipboard operation
aws-lambda-layers copied to clipboard

Increases log_limit to 256k

Open aldilop opened this issue 2 years ago • 2 comments

Hello!

I'm needing bigger logs, so I added a layer increasing the log_limit in my app. But, since Cloudwatch now allows logs up to 256kb (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html), is there a chance this can be applied to the base layer?

Thanks from a fan!

aldilop avatar Jul 20 '23 13:07 aldilop

Hi, have you been able to test these changes in Lambda?

mnapoli avatar Jul 22 '23 15:07 mnapoli

Hi, the change works, in the sense that larger logs are exported intact from Lambda. If the intended usage of these logs is the creation of metrics, it's kinda easier to do with JSON data, and in that case getting truncated logs makes data "disappear" from the metric.

The only thing is if some app is expecting log_limit to reduce their Cloudwatch (and $) usage.

aldilop avatar Jul 23 '23 14:07 aldilop