crossfeed icon indicating copy to clipboard operation
crossfeed copied to clipboard

Fix Truncated Logs

Open aloftus23 opened this issue 2 years ago • 2 comments

🐛 Summary

Make sure there are no logs going to Cloudwatch that are too long to be stored and show the [TRUNCATED] message.

This is a high priority issue since we are losing logs.

aloftus23 avatar Nov 17 '23 14:11 aloftus23

At this time there is not a reasonable solution to this problem. AWS doesn't support API gateway log messages greater than 1024 bytes. There are solutions in the link below that require wrapping the gateway in Lambda functions which is not recommended.

https://stackoverflow.com/questions/54097769/aws-cloudwatch-is-truncating-logs

https://stackoverflow.com/questions/61241488/log-requests-responses-in-api-gateway-through-labmbda-proxy

https://repost.aws/knowledge-center/api-gateway-logs

aloftus23 avatar Nov 20 '23 19:11 aloftus23

Reopening as this is a required feature

aloftus23 avatar Nov 22 '23 21:11 aloftus23