Sharing CloudWatch Dashboard with logs widgets

0

Hello,

I have shared a CW Dashboard via SSO. The dashboard contains CW logs and metrics widgets. Only the metrics widgets contain data. The logs widgets remain empty, no data displayed (only within the AWS console). I have shortly tried to give the dashboard sharing role admin privilidges, but the log widgets still remained empty. What am I missing?

Best regards, Andriy

Andriy
demandé il y a 8 mois360 vues
1 réponse
0

By default, log data is not visible for others who you share the dashboard with.

On Dashboard in console,

Click Actions > Share Dashboard > Resources - IAM Role > Edit policy to include permissions as follows:

{
            "Effect": "Allow",
            "Action": [
                "logs:FilterLogEvents",
                "logs:StartQuery",
                "logs:StopQuery",
                "logs:GetLogRecord"
            ],
            "Resource": [
                "SharedLogGroup1ARN",
                "SharedLogGroup2ARN"
           ]
}

Read more on documentation for detailed instructions.

[1] https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-dashboard-sharing.html#share-cloudwatch-dashboard-logwidget

profile pictureAWS
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions