Skip to content

Commit 5c09962

Browse files
committed
feat: Support pattern /aws/vendedlogs for API GATEWAY logs groups
1 parent c486681 commit 5c09962

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

aws/logs_monitoring/parsing.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,14 @@ def find_cloudwatch_source(log_group):
280280
"api-gateway", # e.g. Api-Gateway-Execution-Logs_xxxxxx/dev
281281
# default location set by serverless framework for rest api access logs
282282
"/aws/api-gateway", # e.g. /aws/api-gateway/my-project
283+
# Avoid touching the size limit of the log group resource policy
284+
# https://docs.aws.amazon.com/fr_fr/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-logs-infrastructure-CWL
285+
"/aws/vendedlogs/api-gateway",
283286
# default location set by serverless framework for http api logs
284-
"/aws/http-api", # e.g. /aws/http-api/my-project
287+
"/aws/http-api", # e.g. /aws/http-api/my-project,
288+
# Avoid touching the size limit of the log group resource policy
289+
# https://docs.aws.amazon.com/fr_fr/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-logs-infrastructure-CWL
290+
"/aws/vendedlogs/http-api",
285291
)
286292
):
287293
return "apigateway"

0 commit comments

Comments
 (0)