简体   繁体   English

如何使用filebeat或logstash,fluentd读取pod内kubernetes中的stdout stderr日志

[英]How to read stdout stderr logs in kubernetes within pod using filebeat or logstash,fluentd

need suggestions how can i capture containers log using stdout or stderr?需要建议如何使用 stdout 或 stderr 捕获容器日志? within a pod在一个吊舱内
on following use case?在以下用例上?

my pod contains 3 containers where i want third container to capture logs by using any of these longing options filebeat, logstash or fluentd.我的 pod 包含 3 个容器,我希望第三个容器使用这些渴望选项 filebeat、logstash 或 fluentd 中的任何一个来捕获日志。

i dont want to save logs in file within containers.我不想将日志保存在容器内的文件中。

Thanks in advance guys.提前谢谢各位。

In case you don't must capture the logs from within the same pod as your containers, you can use ECK's Filebeat Kubernetes operator to automatically set up pods that ships containers logs to Elasticsearch.如果您不必从与容器相同的 pod 中捕获日志,则可以使用 ECK 的 Filebeat Kubernetes 运算符自动设置将容器日志发送到 Elasticsearch 的 pod。 Read the documentation of ECK here:https://www.elastic.co/guide/en/cloud-on-k8s/current/index.html在此处阅读 ECK 的文档:https://www.elastic.co/guide/en/cloud-on-k8s/current/index.html

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

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