QuestionQ104

VerifiedImplementing observability practices and troubleshooting issues

You are operating an application on Compute Engine and collecting logs with Stackdriver. You find that personally identifiable information (PII) is leaking into certain log-entry fields. Every PII entry starts with the text userinfo.

You need to capture these log entries in a secure location for later review while preventing them from leaking into Stackdriver Logging. What should you do?

Explanation

Cloud Logging sinks can use an advanced inclusion filter to route matching log entries to a Cloud Storage destination. An exclusion filter on the default sink prevents entries matching userinfo from being stored in the default Cloud Logging bucket, while the separately configured export sink retains the matched entries in Cloud Storage for review.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!