简体   繁体   中英

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? 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.

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. Read the documentation of ECK here:https://www.elastic.co/guide/en/cloud-on-k8s/current/index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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