roy*_*roy 5 amazon-s3 amazon-web-services amazon-elb
我正在尝试按照此文档https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-access-logs.html为 AWS 网络 ELB 配置访问日志
我指定了存储桶名称和前缀,然后选择了 Create this location for me
以下存储桶策略是为存储桶自动生成的
{
"Version": "2012-10-17",
"Id": "AWSConsole-AccessLogs-Policy-xxxxxxxxxxxxx",
"Statement": [
{
"Sid": "AWSConsoleStmt-xxxxxxxxxxxxx",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::xxxxxxxxxxxx:root"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::bucket_name/prefix/AWSLogs/123456789012/*"
},
{
"Sid": "AWSLogDeliveryWrite",
"Effect": "Allow",
"Principal": {
"Service": "delivery.logs.amazonaws.com"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::bucket_name/prefix/AWSLogs/123456789012/*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control"
}
}
},
{
"Sid": "AWSLogDeliveryAclCheck",
"Effect": "Allow",
"Principal": {
"Service": "delivery.logs.amazonaws.com"
},
"Action": "s3:GetBucketAcl",
"Resource": "arn:aws:s3:::bucket_name"
}
]
}
Run Code Online (Sandbox Code Playgroud)
存储桶已创建,但在AWSLogs/xxxxxxxx下面没有生成任何日志文件。我在这里缺少什么吗?
来自:https : //docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-access-logs.html
仅当负载均衡器具有 TLS 侦听器并且它们仅包含有关 TLS 请求的信息时,才会创建访问日志。
| 归档时间: |
|
| 查看次数: |
1755 次 |
| 最近记录: |