Cloud Logging: Documentation seems to be wrong regarding Authentication #4313
Labels
type: docs
Improvement to the documentation for an API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Environment details
Steps to reproduce
Code example
According to the docs in the readme, everything should work flawlessly. However it doesn't. And there's no further details on troubleshooting. I spent two or three days searching for solutions, and couldn't find one. In particular, there's no GOOGLE_CLOUD_PROJECT environment variable set in my containers. I set those parameters manually nevertheless, but I get the permission denied message.
It looks that, at least for Kubernetes, Cloud Logging does not work out of the box using the API from within GKE.
I added roles to the default service account however nothing changed:
I tried sending the errors to stderr which is supposedly the norm. My text line would get recognized as jsonPayload however Cloud Logging will ignore everything inside like '@type' and 'logName' for example. So in the end it doesn't work as one would thing it should, and errors are not sent to Error Reporting automatically due to this.
I had to come back to Cloud Logging API and tried re reading everything but didn't help. I'm so frustrated with documentation saying everywhere that things work out of the box but then they don't. I don't know what to do.
The text was updated successfully, but these errors were encountered: