昨晚,我在GKE上的Kubernetes集群升级到1.16.8-gke.9。从那时起,日志每分钟显示一次error: unable to find container named fluentd-gcp。来自我的应用程序的日志仍然有效,但是我想知道是什么导致了这个错误,以及如何消除这个错误。
展开错误会得到更多细节:
{
"textPayload": "error: unable to find container named fluentd-gcp\n",
"insertId": "v1b2u2ldrnswujhz2",
我在kubernetes集群中使用fluentd从pod中收集日志,并将它们发送到弹性搜索。每隔一天或两天,fluetnd就会得到一个错误:
[warn]: #0 emit transaction failed: error_class=Fluent::Plugin::Buffer::BufferOverflowError error=“buffer space has too many data” location=“/fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.7.4/lib/fluent/plugin/buffer.rb:265:in
我已经在K8s集群中设置了EFK堆栈。目前,fluentd是从所有容器中抓取日志。
我希望它只从容器A、B、C和D中刮取日志。
如果我在as A-app中有一些前缀,我可以这样做。
"fluentd-inputs.conf": "# HTTP input for the liveness and readiness probes
<source>
@type http
port 9880
</source>
# Get the logs from the co