Stackdriver Logging agent-GRPC :: Unavailable

问题描述 投票:0回答:1

因此,我正在尝试使日志记录代理程序在google实例上运行,但是当它运行时,以下错误不断发生,并且日志未发送到Stackdriver。

#0 failed to flush the buffer, and hit limit for retries. dropping all chunks in the buffer queue. retry_times=3 records=100181 error_class=GRPC::Unavailable error="14:DNS resolution failed"

运行授权范围产量

https://www.googleapis.com/auth/devstorage.read_only
https://www.googleapis.com/auth/logging.write
https://www.googleapis.com/auth/monitoring.write

所以我正在尝试使日志记录代理程序在google实例上运行,但是当它运行时,会继续发生以下错误,并且日志未发送到Stackdriver#0未能刷新...

google-cloud-stackdriver google-cloud-logging
1个回答
0
投票

如果使用的是python,则需要清除标准输出以避免日志缓冲:

© www.soinside.com 2019 - 2024. All rights reserved.