Skip to content

Conversation

aldilop
Copy link

@aldilop aldilop commented Jul 20, 2023

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!

@mnapoli
Copy link
Member

mnapoli commented Jul 22, 2023

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

@aldilop
Copy link
Author

aldilop commented Jul 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants