To do: Send logs to Google Logs Viewer from docker container.
Faced Error I followed this article: https://docs.docker.com/config/containers/logging/gcplogs/ and executed docker run --log-driver=gcplogs nginx
docker: Error response from daemon: failed to initialize logging driver: unable to connect or authenticate with Google Cloud Logging: rpc error: code = PermissionDenied desc = The caller does not have permission.OS: Container Optimized OS cos-81-12871-1196-0
I also tried this The Google Cloud Logging driver for Docker with service account with log.admin and log.writer role
How do I send the logs to Stackdriver/Google Cloud Logging?
Please answer here or on https://stackoverflow.com/questions/63812294/failed-to-initialize-logging-driver-unable-to-connect-or-authenticate-with-goog
--
© 2020 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdr...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.
---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/6ac8c1ee-c62d-4208-a0ec-ec76a62c7ed1n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/7299d1dd-6c09-4795-ad15-2c79435321b8n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/48ea39af-4086-45f6-a2ad-2e5b51a25412n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/5358a9a1-9451-4654-9761-36ab4cea85f0n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/9231669b-6532-469e-83a3-ac6187bc0a81n%40googlegroups.com.
I meant the second answer, which mentions the sudo systemctl start stackdriver-logging command. Have you tried that?
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/1bb472a2-9bfc-45e9-b3df-b7eeeff40caan%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/53903e70-05fd-4a5c-a62b-41b058f1ea6cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/a6e17caa-4bfb-443d-92fd-1c2b521eaf9en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/243f108c-0d7d-4294-b9e0-16214d902c9en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/ae107fc4-8493-48a3-bf70-586866ab7de2n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/f1f27af8-5240-4e17-bff4-4b90a1428428n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/f63bea7a-e945-48d8-bfc1-1efc35f0343an%40googlegroups.com.