Trying to configure fluentd output with td-agent and the fluent-google-cloud plugin. The plugin and all dependencies are loaded but fluentd is not outputting to google cloud logging and the td-agent log states error="Unable to read the credential file specified by GOOGLE_APPLICATION_CREDENTIALS: file /home/$(whoami)/.config/gcloud/service_account_credentials.json does not exist".
However when I go to the file path, the file does exist and the $GOOGLE_APPLICATION_CREDENTIALS variable is set to the file path as well.What should I do to fix this?
td-agent does not validate google cloud service account credentials
158 Views Asked by Frosty At
1
On the assumption that the error and you are both correct, I suspect (!) that you're using your user account ( ==
whoami) and finding/home/$(whoami)/.config/gcloudwhile the agent is running (undersystemctl?) as root and not finding the credentials file there (perhaps/root/.config/gcloud.It would be helpful if you included more details as to what you've done in order that we can better understand the issue.