From 2e866faac4bda6636e52aaab7cacae3bfe69d6a0 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:45:41 -0400 Subject: [PATCH] [v9.5.x] CloudWatch Logs: Document logs data protection (#66322) CloudWatch Logs: Document logs data protection (#65967) * CloudWatch Logs: Document logs data protection * fix href (cherry picked from commit c235ad67e778a1c2ecf4e43c9f3db7df146c9e89) Co-authored-by: Kevin Yu --- .../sources/datasources/aws-cloudwatch/_index.md | 4 ++++ .../cloudwatch/components/LogsCheatSheet.tsx | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/docs/sources/datasources/aws-cloudwatch/_index.md b/docs/sources/datasources/aws-cloudwatch/_index.md index a237ba3b601..3cefaa1c55d 100644 --- a/docs/sources/datasources/aws-cloudwatch/_index.md +++ b/docs/sources/datasources/aws-cloudwatch/_index.md @@ -376,3 +376,7 @@ For more information, refer to the AWS documentation for [Service Quotas](https: The CloudWatch plugin enables you to monitor and troubleshoot applications across multiple regional accounts. Using cross-account observability, you can seamlessly search, visualize and analyze metrics and logs without worrying about account boundaries. To use this feature, configure in the [AWS console under Cloudwatch Settings](https://aws.amazon.com/blogs/aws/new-amazon-cloudwatch-cross-account-observability/), a monitoring and source account, and then add the necessary IAM permissions as described above. + +## CloudWatch Logs data protection + +CloudWatch Logs can safeguard data by using log group data protection policies. If you have data protection enabled for a log group, then any sensitive data that matches the data identifiers you've selected will be masked. In order to view masked data you will need to have the `logs:Unmask` IAM permission enabled. See the AWS documentation on how to [help protect sensitive log data with masking](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html) to learn more about this. diff --git a/public/app/plugins/datasource/cloudwatch/components/LogsCheatSheet.tsx b/public/app/plugins/datasource/cloudwatch/components/LogsCheatSheet.tsx index 0df75f024f1..f0d816e6941 100644 --- a/public/app/plugins/datasource/cloudwatch/components/LogsCheatSheet.tsx +++ b/public/app/plugins/datasource/cloudwatch/components/LogsCheatSheet.tsx @@ -216,6 +216,10 @@ const exampleCategory = css` margin-top: 5px; `; +const link = css` + text-decoration: underline; +`; + export default class LogsCheatSheet extends PureComponent< QueryEditorHelpProps, { userExamples: string[] } @@ -280,6 +284,18 @@ export default class LogsCheatSheet extends PureComponent< ))} ))} +
+ If you are seeing masked data, you may have CloudWatch logs data protection enabled.{' '} + + See documentation for details + + . +
); }