QuestionQ53

VerifiedImplementing observability practices and troubleshooting issues

Your Cloud Run application sends unstructured text-string logs to Cloud Logging. You want to transform the unstructured logs into JSON-based structured logs. What should you do?

Explanation

Cloud Logging represents structured log data in the jsonPayload field. Writing structured entries through the Cloud Logging client library with a jsonPayload changes the application’s output from unstructured text logging to structured logging. Cloud Run is a managed environment that captures application logs without installing or configuring a log agent.

Learn more

Community Discussion

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