Google Cloud Logging + Google流利的丢弃消息

普诺沃特纳克

我在GKE中运行着一个很小的(1-2节点)kubernetes集群,运行了±40个Pod。当前的问题是它没有正确登录到GCE控制台。我从流畅的容器中看到许多消息,格式如下:

$ kubectl logs fluentd-cloud-logging-gke-xxxxxxxx-node-xxxx

2016-02-02 23:30:09 +0000 [warn]: Dropping 10 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."
2016-02-02 23:30:09 +0000 [warn]: Dropping 1 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."
2016-02-02 23:30:09 +0000 [warn]: Dropping 3 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."
2016-02-02 23:30:09 +0000 [warn]: Dropping 41 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."
2016-02-02 23:30:09 +0000 [warn]: Dropping 5 log message(s) error_class="Google::APIClient::ClientError" error="Project has not enabled the API. Please use Google Developers Console to activate the 'logging' API for your project."

...等等。我每秒看到约5条消息,所以我知道事情正在产生日志。但是,在计算引擎控制台中,我看到类似以下内容:

计算引擎控制台日志记录页面快照,其中部分内容已删除

因此,介于两者之间的某处显然丢失了许多消息。不过奇怪的是,我没有失去所有这些信息!

根据GH问题#15727中的建议,为集群配置了Logging.write和Monitoring.all特权。

亚历克斯·罗宾逊

有些日志正在显示,这确实令人困惑。鉴于该错误消息,我希望您的所有日志都不会显示在查看器中,因为听起来好像尚未为您的项目启用日志记录API。

您可以从此处的开发人员控制台中进行操作尝试去那里,单击Enable API按钮,然后查看错误是否继续出现。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Google Cloud Logging /指标中的自定义值

来自分类Dev

Google Cloud Logging中Dataproc Spark作业的输出

来自分类Dev

在Cloud Logging中按Google Container Engine名称空间过滤

来自分类Dev

Google Cloud Logging /指标中的自定义值

来自分类Dev

Google Cloud-Cloud Logging vs Cloud Monitoring vs Stackdriver有什么区别?

来自分类Dev

发送到Google Container Engine容器上的STDOUT / STDERR的日志未显示在Cloud Logging中

来自分类Dev

Google Cloud Logging:是否使用V2 API搜索v1条目?

来自分类Dev

通过Google Compute Engine和Cloud Logging代理使用日志严重性

来自分类Dev

Google Cloud Logging包含/排除过滤器的文档在哪里?

来自分类Dev

使用Google Cloud Winston Logging(Nodejs)记录前后的有趣角色

来自分类Dev

来自Google Cloud Logging API的“ 400:指定了不受支持的服务,INVALID_ARGUMENT”

来自分类Dev

使用Google Cloud Logging从一组选定的日志中搜索文本?

来自分类Dev

需要所有者角色来通过Google Cloud Logging创建数据集吗?

来自分类Dev

Google Cloud Storage 和 Stackdriver Logging:如何使用“gcloud”读取存储桶日志?

来自分类Dev

重新启动后 Google Cloud Logging Driver 找不到凭据

来自分类Dev

Google Cloud Messaging-发送消息

来自分类Dev

带有Apps脚本的Google Cloud Logging API-删除日志-在此服务器上找不到请求的URL

来自分类Dev

Google Cloud Logging API-某些日志条目的审核日志中缺少身份验证(用户)信息

来自分类Dev

在数字海洋上使用docker compose使用docker gcplogs(Google Cloud Logging驱动程序)

来自分类Dev

Google Cloud Messaging VS Google Cloud Platform

来自分类Dev

Google Cloud Storage与Google Cloud CDN

来自分类Dev

Google Cloud Messaging VS Google Cloud Platform

来自分类Dev

Google Cloud SDK与Google Cloud Client库

来自分类Dev

Google Cloud Message或XMPP

来自分类Dev

登录Google Cloud Endpoint

来自分类Dev

Google Cloud Endpoints EOFException

来自分类Dev

Google Cloud Endpoints EOFException

来自分类Dev

Google Cloud SQL定价

来自分类Dev

Google Cloud Messaging与Firebase

Related 相关文章

  1. 1

    Google Cloud Logging /指标中的自定义值

  2. 2

    Google Cloud Logging中Dataproc Spark作业的输出

  3. 3

    在Cloud Logging中按Google Container Engine名称空间过滤

  4. 4

    Google Cloud Logging /指标中的自定义值

  5. 5

    Google Cloud-Cloud Logging vs Cloud Monitoring vs Stackdriver有什么区别?

  6. 6

    发送到Google Container Engine容器上的STDOUT / STDERR的日志未显示在Cloud Logging中

  7. 7

    Google Cloud Logging:是否使用V2 API搜索v1条目?

  8. 8

    通过Google Compute Engine和Cloud Logging代理使用日志严重性

  9. 9

    Google Cloud Logging包含/排除过滤器的文档在哪里?

  10. 10

    使用Google Cloud Winston Logging(Nodejs)记录前后的有趣角色

  11. 11

    来自Google Cloud Logging API的“ 400:指定了不受支持的服务,INVALID_ARGUMENT”

  12. 12

    使用Google Cloud Logging从一组选定的日志中搜索文本?

  13. 13

    需要所有者角色来通过Google Cloud Logging创建数据集吗?

  14. 14

    Google Cloud Storage 和 Stackdriver Logging:如何使用“gcloud”读取存储桶日志?

  15. 15

    重新启动后 Google Cloud Logging Driver 找不到凭据

  16. 16

    Google Cloud Messaging-发送消息

  17. 17

    带有Apps脚本的Google Cloud Logging API-删除日志-在此服务器上找不到请求的URL

  18. 18

    Google Cloud Logging API-某些日志条目的审核日志中缺少身份验证(用户)信息

  19. 19

    在数字海洋上使用docker compose使用docker gcplogs(Google Cloud Logging驱动程序)

  20. 20

    Google Cloud Messaging VS Google Cloud Platform

  21. 21

    Google Cloud Storage与Google Cloud CDN

  22. 22

    Google Cloud Messaging VS Google Cloud Platform

  23. 23

    Google Cloud SDK与Google Cloud Client库

  24. 24

    Google Cloud Message或XMPP

  25. 25

    登录Google Cloud Endpoint

  26. 26

    Google Cloud Endpoints EOFException

  27. 27

    Google Cloud Endpoints EOFException

  28. 28

    Google Cloud SQL定价

  29. 29

    Google Cloud Messaging与Firebase

热门标签

归档