【发布时间】:2021-08-18 22:31:20
【问题描述】:
尝试使用 td-agent 和 fluent-google-cloud 插件配置 fluentd 输出。插件和所有依赖项都已加载,但 fluentd 未输出到谷歌云日志,并且 td-agent 日志状态为 error="Unable to read the credential file specified by GOOGLE_APPLICATION_CREDENTIALS: file /home/$(whoami)/.config/gcloud/service_account_credentials.json does not exist"。
但是,当我转到文件路径时,该文件确实存在,并且 $GOOGLE_APPLICATION_CREDENTIALS 变量也设置为文件路径。我应该怎么做才能解决这个问题?
【问题讨论】: