-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable API Gateway access logs #267
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there some ballpark estimate on the costs here that we can derive? Like 'x' number of API calls amount to a certain cost. Also, do these logs have a retention policy and costs are additive?
In general the cost is low. Access logs are a single line per request(~500bytes). Logs do not have a retention policy, they are kept forever. This is in line with the retention policy for all the other SWB cloudwatch logs. We may want to do something to shorten the retention time to reduce costs, but that's out of the scope of this PR. |
Sounds good to me, I will create a backlog item for adding retention. But I think that is something customers can do on their own too. LGTM overall. |
Description of changes:
Enable ApiGW access logs. The values that are logged were handpicked from the ApiGW List of Log Variables
example log entry:
Execution logging is explicitly disabled since its features are not-so-great for the average customer:
Checklist:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.