Skip to content

Commit

Permalink
feat: Support pattern /aws/vendedlogs for API GATEWAY logs groups
Browse files Browse the repository at this point in the history
  • Loading branch information
cunymatthieu committed Oct 24, 2022
1 parent c486681 commit 682adf4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aws/logs_monitoring/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,14 @@ def find_cloudwatch_source(log_group):
"api-gateway", # e.g. Api-Gateway-Execution-Logs_xxxxxx/dev
# default location set by serverless framework for rest api access logs
"/aws/api-gateway", # e.g. /aws/api-gateway/my-project
# Avoid touching the size limit of the log group resource policy
# https://docs.aws.amazon.com/fr_fr/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-logs-infrastructure-CWL
"/aws/vendedlogs/api-gateway",
# default location set by serverless framework for http api logs
"/aws/http-api", # e.g. /aws/http-api/my-project
"/aws/http-api", # e.g. /aws/http-api/my-project,
# Avoid touching the size limit of the log group resource policy
# https://docs.aws.amazon.com/fr_fr/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-logs-infrastructure-CWL
"/aws/vendedlogs/http-api",
)
):
return "apigateway"
Expand Down

0 comments on commit 682adf4

Please sign in to comment.