2017-04-21 100 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:*:*" 
     ] 
    } ] } 
相關問題