[GCP] GCP Container-Optimized OS Output Log To Cloud Logging Not Work
Situation
When Create Container-Optimized OS
Run Docker, But Logging Not Work
Solution
Make Sure These
VM’s Metadata Have google-logging-enabled
= true

Check Stackdriver Container
Find The Reason Is User Unauthorized To Access
So We Need Add New Permission To Compute Service Account
-
Logs Writer
-
Monitoring Metric Writer

Restart Stackdriver Container
After Restart, You Can Go To Logging Console
