Reputation: 1
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?
Upvotes: 0
Views: 156
Reputation: 40261
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/gcloud
while the agent is running (under systemctl
?) 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.
Upvotes: 0