2017-04-21 104 views
0

我正在尝试为在Elastic Beanstalk和.NET Core上使用的程序设置日志记录。我想将日志条目输出到CloudWatch。我遵循指示https://github.com/aws/aws-logging-dotnet无法将Elastic Beanstalk日志输出到CloudWatch

我想知道我错过了什么。此页面看起来相关:http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.cloudwatchlogs.html它有一个用于配置CloudWatch Logs的截图。有谁知道如何访问该页面来配置CloudWatch日志?我找不到Elastic Beanstalk的任何配置设置。

回答

1

我能够通过添加文件在这里列出的正确的IAM权限得到伐木工作:http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.cloudwatchlogs.html

{ "Version": "2012-10-17", "Statement": [ 
    { 
     "Effect": "Allow", 
     "Action": [ 
     "logs:CreateLogGroup", 
     "logs:CreateLogStream", 
     "logs:GetLogEvents", 
     "logs:PutLogEvents", 
     "logs:DescribeLogGroups", 
     "logs:DescribeLogStreams", 
     "logs:PutRetentionPolicy" 
     ], 
     "Resource": [ 
     "arn:aws:logs:us-west-2:*:*" 
     ] 
    } ] } 
相关问题