简体   繁体   English

如何查看 EKS Fargate FluentBit 日志以进行调试?

[英]How to see EKS Fargate FluentBit logs for debugging?

Is there any way I can see FluentBit logs for EKS Fargate?有什么方法可以查看 EKS Fargate 的 FluentBit 日志? I'd like to see the errors that are raised by the plugins.我想查看插件引发的错误。

The EKS Fargate logging manual provides a way to see if the ConfigMap is valid . EKS Fargate 日志记录手册提供了一种查看 ConfigMap 是否有效的方法。 The ConfigMap entry I'm using is valid, but there seem to be some issues in the plugin because the logs aren't created in Cloudwatch and I don't know why.我使用的 ConfigMap 条目是有效的,但插件中似乎存在一些问题,因为日志不是在 Cloudwatch 中创建的,我不知道为什么。

Turns out AWS provides a way - we need to put the flag flb_log_cw: "true" under data in the ConfigMap ( ref ), and that would output the FluentBit logs to Cloudwatch logs.事实证明 AWS 提供了一种方法 - 我们需要将标志flb_log_cw: "true"放在 ConfigMap ( ref ) 中的data下,这会将 output FluentBit 日志记录到 Cloudwatch 日志中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM